import { type SearchOptions } from "flexsearch";

declare module "@/mdx/search.mjs" {
  export type Result = {
    url: string;
    title: string;
    pageTitle?: string;
  };

  export const search: (query: string, options?: SearchOptions) => Array<Result>;
}
