@promptbook/remote-client
Version:
Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action
27 lines (26 loc) • 862 B
TypeScript
import type { string_html, string_markdown } from '../../../types/string_markdown';
/**
* Options for markdown rendering.
*/
type RenderMarkdownOptions = {
readonly citationReferenceClassName?: string;
};
/**
* Convert markdown content to HTML.
*
* @param markdown - The markdown content to convert.
* @returns HTML string ready for rendering.
*
* @private internal utility of chat components and exports
*/
export declare function renderMarkdown(markdown: string_markdown, options?: RenderMarkdownOptions): string_html;
/**
* Detects whether text appears to contain markdown syntax.
*
* @param markdown - The text to inspect.
* @returns Whether the text contains known markdown markers.
*
* @private internal utility of chat components and exports
*/
export declare function isMarkdownContent(markdown: string_markdown): boolean;
export {};