@iyio/convo-lang
Version:
A conversational language.
12 lines (11 loc) • 1.02 kB
TypeScript
import { JsonScheme } from "@iyio/common";
import { ZodType, ZodTypeAny } from "zod";
import { ConvoBaseType } from "./convo-types";
export declare const convoTypeToJsonScheme: (value: any, maxDepth?: number, cache?: boolean) => JsonScheme | undefined;
export declare const convoValueToZodType: (value: any, maxDepth?: number, cache?: boolean) => ZodType<any>;
export declare const convoParamsToZodShape: (params: Record<string, any>, maxDepth?: number) => Record<string, ZodType<any>>;
export declare const convoBaseTypeToZodType: (type: ConvoBaseType) => ZodType<any>;
export declare const schemeToConvoTypeString: (scheme: ZodTypeAny | JsonScheme, nameOverride?: string) => string;
export declare const zodSchemeToConvoTypeString: (scheme: ZodTypeAny, nameOverride?: string) => string;
export declare const jsonSchemeToConvoTypeString: (scheme: JsonScheme, nameOverride?: string) => string;
export declare const describeConvoScheme: (scheme: JsonScheme | ZodTypeAny, value: any, nameOverride?: string) => string;