@promptbook/website-crawler
Version:
Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action
25 lines (24 loc) • 852 B
TypeScript
/**
* Visual theme accepted by `<BookEditor/>` integrations.
*
* @private internal type of `BookEditor`
*/
export type BookEditorTheme = 'LIGHT' | 'DARK';
/**
* Theme used for the actual notebook editor surface.
*
* The host application can still pass its resolved app theme, but book sources
* are intentionally rendered as light paper in both light and dark app modes.
*
* @private internal constant of `BookEditor`
*/
export declare const BOOK_EDITOR_RENDER_THEME = "LIGHT";
/**
* Resolves an app-level theme into the visual theme used by `<BookEditor/>`.
*
* @param hostTheme - Resolved theme from the embedding application.
* @returns Light theme used by the Book editor surface.
*
* @private internal utility of `BookEditor`
*/
export declare function resolveBookEditorRenderTheme(hostTheme?: BookEditorTheme): BookEditorTheme;