UNPKG

606 BTypeScriptView Raw
1export interface IHighlightText {
2 highlighted?: boolean;
3 text: string;
4}
5export interface ISearchNavResult {
6 title?: string;
7 priority: number;
8 hints: {
9 type: 'page' | 'title' | 'demo' | 'content';
10 link: string;
11 priority: number;
12 pageTitle: string;
13 highlightTitleTexts: IHighlightText[];
14 highlightTexts: IHighlightText[];
15 }[];
16}
17export type ISearchResult = ISearchNavResult[];
18export declare const useSiteSearch: () => {
19 keywords: string;
20 setKeywords: (val: string) => void;
21 result: ISearchResult;
22 loading: boolean;
23};