import { type ReactNode } from "react";
import { type PageOrParent } from "./tree";
export declare const useSearchQuery: () => [string, (q: string) => void];
export declare const useSearchResults: () => Result[] | undefined;
export type Result = {
    path: string;
    title: JSX.Element;
    text: JSX.Element;
};
type SearchContextProviderProps = {
    pagesByPath: Record<string, PageOrParent>;
    children: ReactNode;
};
export declare const SearchContextProvider: ({ pagesByPath, children, }: SearchContextProviderProps) => JSX.Element;
export {};
