UNPKG

@ztl-uwu/nuxt-content

Version:

Write your content inside your Nuxt app

15 lines (14 loc) 482 B
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 {};