dumi
Version:
📖 Documentation Generator of React Component
24 lines (23 loc) • 606 B
TypeScript
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;
};