UNPKG

@promptbook/remote-client

Version:

Promptbook: Turn your company's scattered knowledge into AI ready books

23 lines (22 loc) 837 B
import type { string_javascript } from '../../types/typeAliases'; import type { TODO_any } from '../organization/TODO_any'; type SerializeToPromptbookJavascriptReturn = { /** * Array of import statements required for the `value` to work */ readonly imports: ReadonlyArray<string_javascript>; /** * The serialized value as a string of JavaScript code */ readonly value: string_javascript; }; /** * Function `serializeToPromptbookJavascript` will serialize a value to a javascript representation using `@promptbook/*` entities where possible. * * @public exported from `@promptbook/utils` */ export declare function serializeToPromptbookJavascript(value: TODO_any): SerializeToPromptbookJavascriptReturn; export {}; /** * TODO: Dynamic indentation passable through options in a second argument */