UNPKG

@brendonovich/kobalte__solidbase

Version:

Fully featured, fully customisable static site generation for SolidStart

23 lines (22 loc) 729 B
export interface TableOfContentsItemData { title: string; href: string; children: Array<TableOfContentsItemData>; } export interface BaseFrontmatter { title?: string; titleTemplate?: string; description?: string; } interface CurrentPageData { frontmatter: BaseFrontmatter; toc?: Array<TableOfContentsItemData>; editLink?: string; lastUpdated?: number; } declare const CurrentPageDataProvider: import("@solid-primitives/context").ContextProvider<{ deferStream?: boolean; }>; export { CurrentPageDataProvider }; export declare function useCurrentPageData(): () => CurrentPageData | undefined; export declare function useFrontmatter<T extends Record<string, any>>(): () => T | undefined;