import * as z from "zod/v3";
import { ClosedEnum } from "../../types/enums.js";
import { Result as SafeParseResult } from "../../types/fp.js";
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
import { ReferenceChunk, ReferenceChunk$Outbound } from "./referencechunk.js";
import { TextChunk, TextChunk$Outbound } from "./textchunk.js";
export type Thinking = ReferenceChunk | TextChunk;
export declare const ThinkChunkType: {
    readonly Thinking: "thinking";
};
export type ThinkChunkType = ClosedEnum<typeof ThinkChunkType>;
export type ThinkChunk = {
    thinking: Array<ReferenceChunk | TextChunk>;
    /**
     * Whether the thinking chunk is closed or not. Currently only used for prefixing.
     */
    closed?: boolean | undefined;
    type?: ThinkChunkType | undefined;
};
/** @internal */
export declare const Thinking$inboundSchema: z.ZodType<Thinking, z.ZodTypeDef, unknown>;
/** @internal */
export type Thinking$Outbound = ReferenceChunk$Outbound | TextChunk$Outbound;
/** @internal */
export declare const Thinking$outboundSchema: z.ZodType<Thinking$Outbound, z.ZodTypeDef, Thinking>;
export declare function thinkingToJSON(thinking: Thinking): string;
export declare function thinkingFromJSON(jsonString: string): SafeParseResult<Thinking, SDKValidationError>;
/** @internal */
export declare const ThinkChunkType$inboundSchema: z.ZodNativeEnum<typeof ThinkChunkType>;
/** @internal */
export declare const ThinkChunkType$outboundSchema: z.ZodNativeEnum<typeof ThinkChunkType>;
/** @internal */
export declare const ThinkChunk$inboundSchema: z.ZodType<ThinkChunk, z.ZodTypeDef, unknown>;
/** @internal */
export type ThinkChunk$Outbound = {
    thinking: Array<ReferenceChunk$Outbound | TextChunk$Outbound>;
    closed?: boolean | undefined;
    type: string;
};
/** @internal */
export declare const ThinkChunk$outboundSchema: z.ZodType<ThinkChunk$Outbound, z.ZodTypeDef, ThinkChunk>;
export declare function thinkChunkToJSON(thinkChunk: ThinkChunk): string;
export declare function thinkChunkFromJSON(jsonString: string): SafeParseResult<ThinkChunk, SDKValidationError>;
//# sourceMappingURL=thinkchunk.d.ts.map