@promptbook/remote-server
Version:
Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action
19 lines (18 loc) • 814 B
TypeScript
/**
* Monaco language identifiers supported for markdown code snippets.
*
* @private internal helper of `<CodeBlock/>`
*/
export type MonacoCodeBlockLanguage = 'javascript' | 'typescript' | 'html' | 'css' | 'python' | 'shell' | 'json' | 'sql' | 'book' | 'plaintext';
/**
* Resolves a markdown fenced-code language label into a Monaco language identifier.
*
* Unknown languages intentionally resolve to `plaintext` so unsupported snippets render
* as readable text without syntax highlighting.
*
* @param language - Raw markdown code fence language label (for example `ts`, `typescript`, `bash`).
* @returns Canonical Monaco language identifier.
*
* @private internal helper of `<CodeBlock/>`
*/
export declare function resolveCodeBlockLanguage(language: string | undefined): MonacoCodeBlockLanguage;