UNPKG

dumi

Version:

📖 Documentation Generator of React Component

25 lines (24 loc) • 637 B
export interface IHighlightText { highlighted?: boolean; text: string; } export interface ISearchNavResult { title?: string; priority: number; hints: { type: 'page' | 'title' | 'demo' | 'content'; link: string; priority: number; pageTitle: string; highlightTitleTexts: IHighlightText[]; highlightTexts: IHighlightText[]; }[]; } export type ISearchResult = ISearchNavResult[]; export declare const useSiteSearch: () => { keywords: string; setKeywords: (val: string) => void; result: ISearchResult; loading: boolean; load: () => Promise<void>; };