@promptbook/remote-client
Version:
Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action
13 lines (12 loc) • 580 B
TypeScript
import type { string_javascript } from '../../../types/string_markdown';
import type { string_javascript_name } from '../../../types/string_person_fullname';
/**
* Parses the given script and returns the list of all used variables that are not defined in the script
*
* @param script from which to extract the variables
* @returns the list of variable names
* @throws {ParseError} if the script is invalid
*
* @public exported from `@promptbook/javascript`
*/
export declare function extractVariablesFromJavascript(script: string_javascript): Set<string_javascript_name>;