import { Client } from "../client.cjs";
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<typeof CreateCaptionFilePayload>;
/** @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<CreateCaptionFileResult>;
/** @deprecated Use the unified file API from ./file.js instead */
declare const uploadCaptionFile: (client: Client, fileId: string, fileStream: ReadableStream, fileSize: number) => Promise<any>;
/** @deprecated Use the unified file API from ./file.js instead */
declare const lookupCaptionFileByMd5: (client: Client, md5: string) => Promise<LookupCaptionFileByMd5Result | null>;
//#endregion
export { CreateCaptionFilePayload, CreateCaptionFileResult, LookupCaptionFileByMd5Result, createCaptionFile, lookupCaptionFileByMd5, uploadCaptionFile };
//# sourceMappingURL=caption-file.d.cts.map