import { Client } from "../client.js"; import { z } from "zod"; //#region src/resources/caption-file.d.ts declare const CreateCaptionFilePayload: z.ZodObject<{ /** * The md5 hash of the caption file */ md5: z.ZodString; /** * The filename of the caption file */ filename: z.ZodString; /** * The size of the caption file in bytes */ byte_size: z.ZodNumber; }, "strip", z.ZodTypeAny, { md5: string; filename: string; byte_size: number; }, { md5: string; filename: string; byte_size: number; }>; type CreateCaptionFilePayload = z.infer; /** @deprecated Use the unified file API from ./file.js instead */ interface CreateCaptionFileResult { /** * Whether the caption file is complete */ complete: boolean | null; /** * The id of the caption file */ id: string; /** * The md5 hash of the caption file */ md5: string; } /** @deprecated Use the unified file API from ./file.js instead */ interface LookupCaptionFileByMd5Result { /** * Whether the caption file is complete */ complete: boolean | null; /** * The id of the caption file */ id: string; /** * The md5 hash of the caption file */ md5: string; } /** * Create a caption file * @param client - The authenticated client to use for the request * @param payload - The payload to send to the server * @returns The result of the request * @example * ```ts * const result = await createCaptionFile(client, { * id: "123", * filename: "caption.srt", * }); * console.log(result); * ``` * @category CaptionFile * @resource * @beta * @deprecated Use the unified file API from ./file.js instead */ declare const createCaptionFile: (client: Client, payload: CreateCaptionFilePayload) => Promise; /** @deprecated Use the unified file API from ./file.js instead */ declare const uploadCaptionFile: (client: Client, fileId: string, fileStream: ReadableStream, fileSize: number) => Promise; /** @deprecated Use the unified file API from ./file.js instead */ declare const lookupCaptionFileByMd5: (client: Client, md5: string) => Promise; //#endregion export { CreateCaptionFilePayload, CreateCaptionFileResult, LookupCaptionFileByMd5Result, createCaptionFile, lookupCaptionFileByMd5, uploadCaptionFile }; //# sourceMappingURL=caption-file.d.ts.map