15 lines
482 B
TypeScript
15 lines
482 B
TypeScript
import type { H3Event } from 'h3';
|
|
import type { ParsedContent, QueryBuilderWhere } from '@nuxt/content';
|
|
export declare function serverSearchContent(event: H3Event, filterQuery?: QueryBuilderWhere): Promise<ParsedContent[]>;
|
|
type Section = {
|
|
id: string;
|
|
title: string;
|
|
titles: string[];
|
|
level: number;
|
|
content: string;
|
|
};
|
|
export declare function splitPageIntoSections(page: ParsedContent, { ignoredTags }: {
|
|
ignoredTags: string[];
|
|
}): Section[];
|
|
export {};
|