12 lines
		
	
	
		
			254 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			254 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
import { type SearchOptions } from 'flexsearch'
 | 
						|
 | 
						|
declare module '@/mdx/search.mjs' {
 | 
						|
  export type Result = {
 | 
						|
    url: string
 | 
						|
    title: string
 | 
						|
    pageTitle?: string
 | 
						|
  }
 | 
						|
 | 
						|
  export function search(query: string, options?: SearchOptions): Array<Result>
 | 
						|
}
 |