import * as z from "zod"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { ContentChunk, ContentChunk$Outbound } from "./contentchunk.js"; import { ToolCall, ToolCall$Outbound } from "./toolcall.js"; export type Content = string | Array; export type DeltaMessage = { role?: string | null | undefined; content?: string | Array | null | undefined; toolCalls?: Array | null | undefined; }; /** @internal */ export declare const Content$inboundSchema: z.ZodType; /** @internal */ export type Content$Outbound = string | Array; /** @internal */ export declare const Content$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 Content$ { /** @deprecated use `Content$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `Content$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `Content$Outbound` instead. */ type Outbound = Content$Outbound; } export declare function contentToJSON(content: Content): string; export declare function contentFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const DeltaMessage$inboundSchema: z.ZodType; /** @internal */ export type DeltaMessage$Outbound = { role?: string | null | undefined; content?: string | Array | null | undefined; tool_calls?: Array | null | undefined; }; /** @internal */ export declare const DeltaMessage$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 DeltaMessage$ { /** @deprecated use `DeltaMessage$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `DeltaMessage$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `DeltaMessage$Outbound` instead. */ type Outbound = DeltaMessage$Outbound; } export declare function deltaMessageToJSON(deltaMessage: DeltaMessage): string; export declare function deltaMessageFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=deltamessage.d.ts.map