import { type SharedProps } from "fumadocs-ui/components/dialog/search"; import type { TagItem } from "fumadocs-ui/contexts/search"; export declare const GeistdocsSearchDialog: ({ allowClear, basePath, onTagChange, tag, tags, ...props }: SharedProps & { /** * Let a reader clear the selected scope and search everything. Only meaningful * alongside `tags`. * * @defaultValue false */ allowClear?: boolean; basePath?: string; /** * Called when a reader picks a scope, for consumers that persist the choice * across sessions. The dialog holds the selection either way. */ onTagChange?: (tag: string | undefined) => void; /** * Scope passed through to the search route as fumadocs' `tag` query * parameter, for sites whose index is partitioned (by version, section, or * product) and whose dialog should answer from the reader's partition. * * Supply it through the provider's `search.options`, which fumadocs spreads * onto this dialog. Left undefined the parameter is omitted, so the request * is unchanged. * * It belongs in the query string rather than a header or a cookie because * fumadocs' fetch client memoizes results per request URL for the lifetime * of the page: two scopes that produce the same URL would share one cache * entry, and the second would be served the first's results. */ tag?: string | string[]; /** * Scopes a reader can switch between, rendered as a row of pills under the * results. Without them the scope is whatever `tag` says and the reader * cannot change it; with them `tag` is the initial selection. * * Pills carry a single scope each, so `tag` should be a string when they are * used. An array scope stays in force but selects no pill. */ tags?: TagItem[]; }) => import("react/jsx-runtime").JSX.Element; //# sourceMappingURL=search.d.ts.map