fumadocs-core
Version:
The library for building a documentation website in Next.js
20 lines (18 loc) • 502 B
TypeScript
interface SortedResult {
id: string;
url: string;
type: 'page' | 'heading' | 'text';
content: string;
contentWithHighlights?: HighlightedText[];
}
type HighlightedText = {
type: 'text';
content: string;
styles?: {
highlight?: boolean;
};
};
declare function createContentHighlighter(query: string | RegExp): {
highlight(content: string): HighlightedText[];
};
export { type HighlightedText as H, type SortedResult as S, createContentHighlighter as c };