UNPKG

nice-ui

Version:

React design system, components, and utilities

20 lines (19 loc) 1.1 kB
import type { ContentPage } from './types'; export interface MarkdownDownloadResult { text: string; } export declare const downloadPageAsMarkdown: (page: ContentPage) => Promise<MarkdownDownloadResult>; export declare const downloadFile: (filename: string, text: string, mime?: string) => void; export declare const openInNewTab: (title: string, text: string) => void; export declare const augmentContentPages: (page: ContentPage, parent?: ContentPage) => void; export declare const pageutils: { title: (page: ContentPage) => string; prevSibling: (page: ContentPage) => ContentPage | undefined; nextSibling: (page: ContentPage) => ContentPage | undefined; prev: (page: ContentPage) => ContentPage | undefined; next: (page: ContentPage, noParentCrawl?: boolean) => ContentPage | undefined; /** @todo This could internally use `.walk()` implementation. */ find: (page: ContentPage, to: string | string[]) => ContentPage | undefined; preloadChildren: (page: ContentPage) => Promise<void>; walk(page: ContentPage, steps: string[], index?: number): ContentPage[]; };