1 | export interface IHighlightText {
|
2 | highlighted?: boolean;
|
3 | text: string;
|
4 | }
|
5 | export 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 | }
|
17 | export type ISearchResult = ISearchNavResult[];
|
18 | export declare const useSiteSearch: () => {
|
19 | keywords: string;
|
20 | setKeywords: (val: string) => void;
|
21 | result: ISearchResult;
|
22 | loading: boolean;
|
23 | };
|