/** * One token emitted while highlighting Book source. * * @private internal type of `BookEditor` */ export type BookEditorSyntaxTokenName = 'title' | 'commitment' | 'note-commitment' | 'todo-commitment' | 'parameter' | 'agent-reference' | 'code-block'; /** * Visual style of one Book syntax token. * * @private internal type of `BookEditor` */ export type BookEditorSyntaxTokenStyle = { /** * Token this style belongs to. */ readonly token: BookEditorSyntaxTokenName; /** * Text color of the token. */ readonly foreground: string; /** * Optional background color of the token. */ readonly background?: string; /** * Optional space-separated font style, for example `bold underline`. */ readonly fontStyle?: string; }; /** * Single source of truth for how Book source is colored. * * The Monaco theme of `` and every static rendering of Book source * (for example the Book language manual PDF) are derived from these styles, so * a book always looks the same no matter where it is displayed. * * @private internal constant of `BookEditor` */ export declare const BOOK_EDITOR_SYNTAX_TOKEN_STYLES: ReadonlyArray;