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";
export declare const DataPartKind: {
    readonly Data: "data";
};
export type DataPartKind = ClosedEnum<typeof DataPartKind>;
/**
 * A structured data part containing JSON-serializable key-value pairs. Used for passing structured information between agents and tools.
 */
export type DataPart = {
    kind: DataPartKind;
    data: {
        [k: string]: any;
    };
    metadata?: {
        [k: string]: any;
    } | undefined;
};
/** @internal */
export declare const DataPartKind$inboundSchema: z.ZodNativeEnum<typeof DataPartKind>;
/** @internal */
export declare const DataPartKind$outboundSchema: z.ZodNativeEnum<typeof DataPartKind>;
/** @internal */
export declare const DataPart$inboundSchema: z.ZodType<DataPart, z.ZodTypeDef, unknown>;
/** @internal */
export type DataPart$Outbound = {
    kind: string;
    data: {
        [k: string]: any;
    };
    metadata?: {
        [k: string]: any;
    } | undefined;
};
/** @internal */
export declare const DataPart$outboundSchema: z.ZodType<DataPart$Outbound, z.ZodTypeDef, DataPart>;
export declare function dataPartToJSON(dataPart: DataPart): string;
export declare function dataPartFromJSON(jsonString: string): SafeParseResult<DataPart, SDKValidationError>;
//# sourceMappingURL=datapart.d.ts.map