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 type FileUploadFile = {
    fileName: string;
    content: ReadableStream<Uint8Array> | Blob | ArrayBuffer | Uint8Array;
};
/**
 * The intended purpose of the uploaded file.
 */
export declare const Purpose: {
    readonly Retrieval: "retrieval";
    readonly KnowledgeDatasource: "knowledge_datasource";
    readonly Batch: "batch";
};
/**
 * The intended purpose of the uploaded file.
 */
export type Purpose = ClosedEnum<typeof Purpose>;
export type FileUploadRequestBody = {
    /**
     * The file to be uploaded.
     */
    file: FileUploadFile | Blob;
    /**
     * The intended purpose of the uploaded file.
     */
    purpose?: Purpose | undefined;
};
/**
 * File uploaded successfully
 */
export type FileUploadResponseBody = {
    id: string;
    bytes: number;
    created: string;
    fileName: string;
    purpose: string;
    workspaceId: string;
};
/** @internal */
export type FileUploadFile$Outbound = {
    fileName: string;
    content: ReadableStream<Uint8Array> | Blob | ArrayBuffer | Uint8Array;
};
/** @internal */
export declare const FileUploadFile$outboundSchema: z.ZodType<FileUploadFile$Outbound, z.ZodTypeDef, FileUploadFile>;
export declare function fileUploadFileToJSON(fileUploadFile: FileUploadFile): string;
/** @internal */
export declare const Purpose$outboundSchema: z.ZodNativeEnum<typeof Purpose>;
/** @internal */
export type FileUploadRequestBody$Outbound = {
    file: FileUploadFile$Outbound | Blob;
    purpose: string;
};
/** @internal */
export declare const FileUploadRequestBody$outboundSchema: z.ZodType<FileUploadRequestBody$Outbound, z.ZodTypeDef, FileUploadRequestBody>;
export declare function fileUploadRequestBodyToJSON(fileUploadRequestBody: FileUploadRequestBody): string;
/** @internal */
export declare const FileUploadResponseBody$inboundSchema: z.ZodType<FileUploadResponseBody, z.ZodTypeDef, unknown>;
export declare function fileUploadResponseBodyFromJSON(jsonString: string): SafeParseResult<FileUploadResponseBody, SDKValidationError>;
//# sourceMappingURL=fileupload.d.ts.map