UNPKG

@convo-lang/convo-lang

Version:
311 lines (310 loc) 19.2 kB
import { ConvoExecutionContext } from "./ConvoExecutionContext.js"; import { ConvoScope } from "./convo-types.js"; export declare const defaultConvoVarsBase: { readonly __body: import("./convo-types.js").ConvoScopeFunction; readonly string: import("./convo-types.js").ConvoType; readonly number: import("./convo-types.js").ConvoType; readonly int: import("./convo-types.js").ConvoType; readonly time: import("./convo-types.js").ConvoType; readonly void: import("./convo-types.js").ConvoType; readonly boolean: import("./convo-types.js").ConvoType; readonly any: import("./convo-types.js").ConvoType; readonly object: import("./convo-types.js").ConvoType; readonly true: true; readonly false: false; readonly null: null; readonly undefined: undefined; readonly convo: undefined; readonly pipe: import("./convo-types.js").ConvoScopeFunction; readonly struct: import("./convo-types.js").ConvoScopeFunction; readonly map: import("./convo-types.js").ConvoScopeFunction; readonly array: (scope: ConvoScope) => any[]; readonly jsonMap: import("./convo-types.js").ConvoScopeFunction; readonly jsonArray: (scope: ConvoScope) => any[]; readonly __args: undefined; readonly enum: import("./convo-types.js").ConvoScopeFunction; readonly mapWithCapture: import("./convo-types.js").ConvoScopeFunction; readonly is: import("./convo-types.js").ConvoScopeFunction; readonly and: import("./convo-types.js").ConvoScopeFunction; readonly or: import("./convo-types.js").ConvoScopeFunction; readonly not: import("./convo-types.js").ConvoScopeFunction; readonly no: import("./convo-types.js").ConvoScopeFunction; readonly out: import("./convo-types.js").ConvoScopeFunction; readonly outTrim: import("./convo-types.js").ConvoScopeFunction; readonly outInline: import("./convo-types.js").ConvoScopeFunction; readonly outSep: import("./convo-types.js").ConvoScopeFunction; readonly getFileName: import("./convo-types.js").ConvoScopeFunction; readonly if: import("./convo-types.js").ConvoScopeFunction; readonly elif: import("./convo-types.js").ConvoScopeFunction; readonly else: import("./convo-types.js").ConvoScopeFunction; readonly then: import("./convo-types.js").ConvoScopeFunction; readonly while: import("./convo-types.js").ConvoScopeFunction; readonly foreach: import("./convo-types.js").ConvoScopeFunction; readonly in: import("./convo-types.js").ConvoScopeFunction; readonly break: import("./convo-types.js").ConvoScopeFunction; readonly do: import("./convo-types.js").ConvoScopeFunction; readonly fn: import("./convo-types.js").ConvoScopeFunction; readonly return: import("./convo-types.js").ConvoScopeFunction; readonly neq: import("./convo-types.js").ConvoScopeFunction; readonly eq: import("./convo-types.js").ConvoScopeFunction; readonly gt: import("./convo-types.js").ConvoScopeFunction; readonly gte: import("./convo-types.js").ConvoScopeFunction; readonly lt: import("./convo-types.js").ConvoScopeFunction; readonly lte: import("./convo-types.js").ConvoScopeFunction; readonly isIn: import("./convo-types.js").ConvoScopeFunction; readonly contains: import("./convo-types.js").ConvoScopeFunction; readonly regexMatch: import("./convo-types.js").ConvoScopeFunction; readonly starMatch: import("./convo-types.js").ConvoScopeFunction; readonly deepCompare: import("./convo-types.js").ConvoScopeFunction; readonly aryRandomize: import("./convo-types.js").ConvoScopeFunction; readonly aryAdd: import("./convo-types.js").ConvoScopeFunction; readonly aryInsert: import("./convo-types.js").ConvoScopeFunction; readonly aryRemove: import("./convo-types.js").ConvoScopeFunction; readonly aryConcat: import("./convo-types.js").ConvoScopeFunction; readonly aryDistinct: import("./convo-types.js").ConvoScopeFunction; readonly aryJoin: import("./convo-types.js").ConvoScopeFunction; readonly add: import("./convo-types.js").ConvoScopeFunction; readonly sub: import("./convo-types.js").ConvoScopeFunction; readonly mul: import("./convo-types.js").ConvoScopeFunction; readonly div: import("./convo-types.js").ConvoScopeFunction; readonly mod: import("./convo-types.js").ConvoScopeFunction; readonly pow: import("./convo-types.js").ConvoScopeFunction; readonly print: import("./convo-types.js").ConvoScopeFunction; readonly inc: import("./convo-types.js").ConvoScopeFunction; readonly dec: import("./convo-types.js").ConvoScopeFunction; readonly switch: import("./convo-types.js").ConvoScopeFunction; readonly case: import("./convo-types.js").ConvoScopeFunction; readonly default: import("./convo-types.js").ConvoScopeFunction; readonly test: import("./convo-types.js").ConvoScopeFunction; readonly sleep: import("./convo-types.js").ConvoScopeFunction; readonly rand: import("./convo-types.js").ConvoScopeFunction; readonly idx: import("./convo-types.js").ConvoScopeFunction; readonly setDefault: import("./convo-types.js").ConvoScopeFunction; readonly encodeURI: import("./convo-types.js").ConvoScopeFunction; readonly encodeURIComponent: import("./convo-types.js").ConvoScopeFunction; readonly now: import("./convo-types.js").ConvoScopeFunction; readonly dateTime: import("./convo-types.js").ConvoScopeFunction; readonly today: import("./convo-types.js").ConvoScopeFunction; readonly md: import("./convo-types.js").ConvoScopeFunction; readonly toMarkdown: import("./convo-types.js").ConvoScopeFunction; readonly toJson: import("./convo-types.js").ConvoScopeFunction; readonly toJsonMdBlock: import("./convo-types.js").ConvoScopeFunction; readonly toJsonScheme: import("./convo-types.js").ConvoScopeFunction; readonly toCsv: import("./convo-types.js").ConvoScopeFunction; readonly toCsvMdBlock: import("./convo-types.js").ConvoScopeFunction; readonly merge: import("./convo-types.js").ConvoScopeFunction; readonly setObjDefaults: import("./convo-types.js").ConvoScopeFunction; readonly new: import("./convo-types.js").ConvoScopeFunction; readonly tmpl: import("./convo-types.js").ConvoScopeFunction; readonly html: import("./convo-types.js").ConvoScopeFunction; readonly describeStruct: import("./convo-types.js").ConvoScopeFunction; readonly xAtt: import("./convo-types.js").ConvoScopeFunction; readonly enableRag: import("./convo-types.js").ConvoScopeFunction; readonly clearRag: import("./convo-types.js").ConvoScopeFunction; readonly shortUuid: import("./convo-types.js").ConvoScopeFunction; readonly uuid: import("./convo-types.js").ConvoScopeFunction; readonly getVar: import("./convo-types.js").ConvoScopeFunction; readonly setVar: import("./convo-types.js").ConvoScopeFunction; readonly describeScene: import("./convo-types.js").ConvoScopeFunction; readonly getAgentList: import("./convo-types.js").ConvoScopeFunction; readonly defineForm: import("./convo-types.js").ConvoScopeFunction; readonly enableTransform: import("./convo-types.js").ConvoScopeFunction; readonly enableAllTransforms: import("./convo-types.js").ConvoScopeFunction; readonly pushConvoTask: import("./convo-types.js").ConvoScopeFunction; readonly popConvoTask: import("./convo-types.js").ConvoScopeFunction; readonly fsFullPath: import("./convo-types.js").ConvoScopeFunction; readonly joinPaths: import("./convo-types.js").ConvoScopeFunction; readonly isUndefined: import("./convo-types.js").ConvoScopeFunction; readonly secondMs: import("./convo-types.js").ConvoScopeFunction; readonly minuteMs: import("./convo-types.js").ConvoScopeFunction; readonly hourMs: import("./convo-types.js").ConvoScopeFunction; readonly dayMs: import("./convo-types.js").ConvoScopeFunction; readonly aryFindMatch: import("./convo-types.js").ConvoScopeFunction; readonly aryFindIndex: import("./convo-types.js").ConvoScopeFunction; readonly aryRemoveMatch: import("./convo-types.js").ConvoScopeFunction; readonly getObjKeyCount: import("./convo-types.js").ConvoScopeFunction; readonly getObjKeys: import("./convo-types.js").ConvoScopeFunction; readonly getObjKeyValues: import("./convo-types.js").ConvoScopeFunction; }; export declare const extendedConvoVars: { readonly httpGet: import("./convo-types.js").ConvoScopeFunction; readonly httpGetString: import("./convo-types.js").ConvoScopeFunction; readonly httpPost: import("./convo-types.js").ConvoScopeFunction; readonly httpPut: import("./convo-types.js").ConvoScopeFunction; readonly httpPatch: import("./convo-types.js").ConvoScopeFunction; readonly httpDelete: import("./convo-types.js").ConvoScopeFunction; readonly openBrowserWindow: import("./convo-types.js").ConvoScopeFunction; readonly getRoutePath: import("./convo-types.js").ConvoScopeFunction; readonly isRouteMatch: import("./convo-types.js").ConvoScopeFunction; readonly readDoc: import("./convo-types.js").ConvoScopeFunction; readonly fsWriteJson: import("./convo-types.js").ConvoScopeFunction; readonly fsReadJson: import("./convo-types.js").ConvoScopeFunction; readonly fsMultiRead: import("./convo-types.js").ConvoScopeFunction; readonly fsReadBase64: import("./convo-types.js").ConvoScopeFunction; readonly fsReadBase64Url: import("./convo-types.js").ConvoScopeFunction; readonly fsReadBase64Image: import("./convo-types.js").ConvoScopeFunction; readonly mdImg: import("./convo-types.js").ConvoScopeFunction; readonly fsWrite: import("./convo-types.js").ConvoScopeFunction; readonly fsAppend: import("./convo-types.js").ConvoScopeFunction; readonly fsRead: import("./convo-types.js").ConvoScopeFunction; readonly fsRemove: import("./convo-types.js").ConvoScopeFunction; readonly fsMkDir: import("./convo-types.js").ConvoScopeFunction; readonly fsExists: import("./convo-types.js").ConvoScopeFunction; readonly fsReadDir: import("./convo-types.js").ConvoScopeFunction; readonly getNodeInfo: import("./convo-types.js").ConvoScopeFunction; readonly getNodeInput: import("./convo-types.js").ConvoScopeFunction; }; export declare const defaultConvoVars: { httpGet: import("./convo-types.js").ConvoScopeFunction; httpGetString: import("./convo-types.js").ConvoScopeFunction; httpPost: import("./convo-types.js").ConvoScopeFunction; httpPut: import("./convo-types.js").ConvoScopeFunction; httpPatch: import("./convo-types.js").ConvoScopeFunction; httpDelete: import("./convo-types.js").ConvoScopeFunction; openBrowserWindow: import("./convo-types.js").ConvoScopeFunction; getRoutePath: import("./convo-types.js").ConvoScopeFunction; isRouteMatch: import("./convo-types.js").ConvoScopeFunction; readDoc: import("./convo-types.js").ConvoScopeFunction; fsWriteJson: import("./convo-types.js").ConvoScopeFunction; fsReadJson: import("./convo-types.js").ConvoScopeFunction; fsMultiRead: import("./convo-types.js").ConvoScopeFunction; fsReadBase64: import("./convo-types.js").ConvoScopeFunction; fsReadBase64Url: import("./convo-types.js").ConvoScopeFunction; fsReadBase64Image: import("./convo-types.js").ConvoScopeFunction; mdImg: import("./convo-types.js").ConvoScopeFunction; fsWrite: import("./convo-types.js").ConvoScopeFunction; fsAppend: import("./convo-types.js").ConvoScopeFunction; fsRead: import("./convo-types.js").ConvoScopeFunction; fsRemove: import("./convo-types.js").ConvoScopeFunction; fsMkDir: import("./convo-types.js").ConvoScopeFunction; fsExists: import("./convo-types.js").ConvoScopeFunction; fsReadDir: import("./convo-types.js").ConvoScopeFunction; getNodeInfo: import("./convo-types.js").ConvoScopeFunction; getNodeInput: import("./convo-types.js").ConvoScopeFunction; __body: import("./convo-types.js").ConvoScopeFunction; string: import("./convo-types.js").ConvoType; number: import("./convo-types.js").ConvoType; int: import("./convo-types.js").ConvoType; time: import("./convo-types.js").ConvoType; void: import("./convo-types.js").ConvoType; boolean: import("./convo-types.js").ConvoType; any: import("./convo-types.js").ConvoType; object: import("./convo-types.js").ConvoType; true: true; false: false; null: null; undefined: undefined; convo: undefined; pipe: import("./convo-types.js").ConvoScopeFunction; struct: import("./convo-types.js").ConvoScopeFunction; map: import("./convo-types.js").ConvoScopeFunction; array: (scope: ConvoScope) => any[]; jsonMap: import("./convo-types.js").ConvoScopeFunction; jsonArray: (scope: ConvoScope) => any[]; __args: undefined; enum: import("./convo-types.js").ConvoScopeFunction; mapWithCapture: import("./convo-types.js").ConvoScopeFunction; is: import("./convo-types.js").ConvoScopeFunction; and: import("./convo-types.js").ConvoScopeFunction; or: import("./convo-types.js").ConvoScopeFunction; not: import("./convo-types.js").ConvoScopeFunction; no: import("./convo-types.js").ConvoScopeFunction; out: import("./convo-types.js").ConvoScopeFunction; outTrim: import("./convo-types.js").ConvoScopeFunction; outInline: import("./convo-types.js").ConvoScopeFunction; outSep: import("./convo-types.js").ConvoScopeFunction; getFileName: import("./convo-types.js").ConvoScopeFunction; if: import("./convo-types.js").ConvoScopeFunction; elif: import("./convo-types.js").ConvoScopeFunction; else: import("./convo-types.js").ConvoScopeFunction; then: import("./convo-types.js").ConvoScopeFunction; while: import("./convo-types.js").ConvoScopeFunction; foreach: import("./convo-types.js").ConvoScopeFunction; in: import("./convo-types.js").ConvoScopeFunction; break: import("./convo-types.js").ConvoScopeFunction; do: import("./convo-types.js").ConvoScopeFunction; fn: import("./convo-types.js").ConvoScopeFunction; return: import("./convo-types.js").ConvoScopeFunction; neq: import("./convo-types.js").ConvoScopeFunction; eq: import("./convo-types.js").ConvoScopeFunction; gt: import("./convo-types.js").ConvoScopeFunction; gte: import("./convo-types.js").ConvoScopeFunction; lt: import("./convo-types.js").ConvoScopeFunction; lte: import("./convo-types.js").ConvoScopeFunction; isIn: import("./convo-types.js").ConvoScopeFunction; contains: import("./convo-types.js").ConvoScopeFunction; regexMatch: import("./convo-types.js").ConvoScopeFunction; starMatch: import("./convo-types.js").ConvoScopeFunction; deepCompare: import("./convo-types.js").ConvoScopeFunction; aryRandomize: import("./convo-types.js").ConvoScopeFunction; aryAdd: import("./convo-types.js").ConvoScopeFunction; aryInsert: import("./convo-types.js").ConvoScopeFunction; aryRemove: import("./convo-types.js").ConvoScopeFunction; aryConcat: import("./convo-types.js").ConvoScopeFunction; aryDistinct: import("./convo-types.js").ConvoScopeFunction; aryJoin: import("./convo-types.js").ConvoScopeFunction; add: import("./convo-types.js").ConvoScopeFunction; sub: import("./convo-types.js").ConvoScopeFunction; mul: import("./convo-types.js").ConvoScopeFunction; div: import("./convo-types.js").ConvoScopeFunction; mod: import("./convo-types.js").ConvoScopeFunction; pow: import("./convo-types.js").ConvoScopeFunction; print: import("./convo-types.js").ConvoScopeFunction; inc: import("./convo-types.js").ConvoScopeFunction; dec: import("./convo-types.js").ConvoScopeFunction; switch: import("./convo-types.js").ConvoScopeFunction; case: import("./convo-types.js").ConvoScopeFunction; default: import("./convo-types.js").ConvoScopeFunction; test: import("./convo-types.js").ConvoScopeFunction; sleep: import("./convo-types.js").ConvoScopeFunction; rand: import("./convo-types.js").ConvoScopeFunction; idx: import("./convo-types.js").ConvoScopeFunction; setDefault: import("./convo-types.js").ConvoScopeFunction; encodeURI: import("./convo-types.js").ConvoScopeFunction; encodeURIComponent: import("./convo-types.js").ConvoScopeFunction; now: import("./convo-types.js").ConvoScopeFunction; dateTime: import("./convo-types.js").ConvoScopeFunction; today: import("./convo-types.js").ConvoScopeFunction; md: import("./convo-types.js").ConvoScopeFunction; toMarkdown: import("./convo-types.js").ConvoScopeFunction; toJson: import("./convo-types.js").ConvoScopeFunction; toJsonMdBlock: import("./convo-types.js").ConvoScopeFunction; toJsonScheme: import("./convo-types.js").ConvoScopeFunction; toCsv: import("./convo-types.js").ConvoScopeFunction; toCsvMdBlock: import("./convo-types.js").ConvoScopeFunction; merge: import("./convo-types.js").ConvoScopeFunction; setObjDefaults: import("./convo-types.js").ConvoScopeFunction; new: import("./convo-types.js").ConvoScopeFunction; tmpl: import("./convo-types.js").ConvoScopeFunction; html: import("./convo-types.js").ConvoScopeFunction; describeStruct: import("./convo-types.js").ConvoScopeFunction; xAtt: import("./convo-types.js").ConvoScopeFunction; enableRag: import("./convo-types.js").ConvoScopeFunction; clearRag: import("./convo-types.js").ConvoScopeFunction; shortUuid: import("./convo-types.js").ConvoScopeFunction; uuid: import("./convo-types.js").ConvoScopeFunction; getVar: import("./convo-types.js").ConvoScopeFunction; setVar: import("./convo-types.js").ConvoScopeFunction; describeScene: import("./convo-types.js").ConvoScopeFunction; getAgentList: import("./convo-types.js").ConvoScopeFunction; defineForm: import("./convo-types.js").ConvoScopeFunction; enableTransform: import("./convo-types.js").ConvoScopeFunction; enableAllTransforms: import("./convo-types.js").ConvoScopeFunction; pushConvoTask: import("./convo-types.js").ConvoScopeFunction; popConvoTask: import("./convo-types.js").ConvoScopeFunction; fsFullPath: import("./convo-types.js").ConvoScopeFunction; joinPaths: import("./convo-types.js").ConvoScopeFunction; isUndefined: import("./convo-types.js").ConvoScopeFunction; secondMs: import("./convo-types.js").ConvoScopeFunction; minuteMs: import("./convo-types.js").ConvoScopeFunction; hourMs: import("./convo-types.js").ConvoScopeFunction; dayMs: import("./convo-types.js").ConvoScopeFunction; aryFindMatch: import("./convo-types.js").ConvoScopeFunction; aryFindIndex: import("./convo-types.js").ConvoScopeFunction; aryRemoveMatch: import("./convo-types.js").ConvoScopeFunction; getObjKeyCount: import("./convo-types.js").ConvoScopeFunction; getObjKeys: import("./convo-types.js").ConvoScopeFunction; getObjKeyValues: import("./convo-types.js").ConvoScopeFunction; }; export declare const sandboxConvoVars: Record<string, any>; export declare const getConvoMarkdownVar: (name: string, format: string, ctx: ConvoExecutionContext) => any;