export interface ContentMatch { type: "content"; snippet: string; } export interface SectionMatch { type: "section"; heading: string; snippet: string; } export type SearchMatch = ContentMatch | SectionMatch; export interface SearchResult { id: string; title: string; url: string; tag?: string; breadcrumbs?: string[]; matches: SearchMatch[]; } export interface SearchContextValue { isOpen: boolean; setIsOpen: (open: boolean) => void; query: string; setQuery: (query: string) => void; results: SearchResult[]; isLoading: boolean; error: string | null; selectResult: (result: SearchResult) => void; } export interface SearchProviderProps { children: React.ReactNode; documents?: SearchResult[]; debounceMs?: number; } export interface SearchTriggerProps { onClick: () => void; className?: string; } export interface SearchResultItemProps { result: SearchResult; onSelect: (result: SearchResult) => void; query?: string; } //# sourceMappingURL=searchbox-types.d.ts.map