import * as z from "zod"; import { ClosedEnum } from "../types/enums.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./sdkvalidationerror.js"; /** * type of parameter */ export declare const FunctionParametersType: { readonly Object: "object"; }; /** * type of parameter */ export type FunctionParametersType = ClosedEnum; export type Properties = { /** * The type of the property */ type?: string | undefined; /** * A description of the property */ description?: string | undefined; }; /** * The parameters the functions accepts, described as a JSON Schema object. * * @remarks * * To describe a function that accepts no parameters, provide the value `{"type": "object", "properties": {}}`. */ export type FunctionParameters = { /** * type of parameter */ type?: FunctionParametersType | undefined; /** * which one of the parameter is required */ required?: Array | undefined; /** * A map of property names to their types and descriptions. Each property is an object with 'type' and 'description' fields. */ properties?: { [k: string]: Properties; } | undefined; }; /** @internal */ export declare const FunctionParametersType$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const FunctionParametersType$outboundSchema: z.ZodNativeEnum; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace FunctionParametersType$ { /** @deprecated use `FunctionParametersType$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly Object: "object"; }>; /** @deprecated use `FunctionParametersType$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly Object: "object"; }>; } /** @internal */ export declare const Properties$inboundSchema: z.ZodType; /** @internal */ export type Properties$Outbound = { type?: string | undefined; description?: string | undefined; }; /** @internal */ export declare const Properties$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace Properties$ { /** @deprecated use `Properties$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `Properties$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `Properties$Outbound` instead. */ type Outbound = Properties$Outbound; } export declare function propertiesToJSON(properties: Properties): string; export declare function propertiesFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const FunctionParameters$inboundSchema: z.ZodType; /** @internal */ export type FunctionParameters$Outbound = { type?: string | undefined; required?: Array | undefined; properties?: { [k: string]: Properties$Outbound; } | undefined; }; /** @internal */ export declare const FunctionParameters$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace FunctionParameters$ { /** @deprecated use `FunctionParameters$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `FunctionParameters$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `FunctionParameters$Outbound` instead. */ type Outbound = FunctionParameters$Outbound; } export declare function functionParametersToJSON(functionParameters: FunctionParameters): string; export declare function functionParametersFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=functionparameters.d.ts.map