import { Client } from "../client.js"; import { CompletionIterator } from "../ProgressIterator.js"; import { z } from "zod"; //#region src/resources/renders.d.ts declare const RenderOutputConfiguration: z.ZodDiscriminatedUnion<"container", [z.ZodObject<{ container: z.ZodLiteral<"mp4">; video: z.ZodObject<{ codec: z.ZodLiteral<"h264">; }, "strip", z.ZodTypeAny, { codec: "h264"; }, { codec: "h264"; }>; audio: z.ZodObject<{ codec: z.ZodLiteral<"aac">; }, "strip", z.ZodTypeAny, { codec: "aac"; }, { codec: "aac"; }>; }, "strip", z.ZodTypeAny, { video: { codec: "h264"; }; audio: { codec: "aac"; }; container: "mp4"; }, { video: { codec: "h264"; }; audio: { codec: "aac"; }; container: "mp4"; }>, z.ZodObject<{ container: z.ZodLiteral<"jpeg">; quality: z.ZodOptional>; }, "strip", z.ZodTypeAny, { container: "jpeg"; quality?: number | undefined; }, { container: "jpeg"; quality?: number | undefined; }>, z.ZodObject<{ container: z.ZodLiteral<"png">; compression: z.ZodOptional>; transparency: z.ZodOptional>; }, "strip", z.ZodTypeAny, { container: "png"; compression?: number | undefined; transparency?: boolean | undefined; }, { container: "png"; compression?: number | undefined; transparency?: boolean | undefined; }>, z.ZodObject<{ container: z.ZodLiteral<"webp">; quality: z.ZodOptional>; compression: z.ZodOptional>; transparency: z.ZodOptional>; }, "strip", z.ZodTypeAny, { container: "webp"; quality?: number | undefined; compression?: number | undefined; transparency?: boolean | undefined; }, { container: "webp"; quality?: number | undefined; compression?: number | undefined; transparency?: boolean | undefined; }>]>; type RenderOutputConfiguration = z.infer; declare const CreateRenderPayload: z.ZodObject<{ md5: z.ZodOptional; fps: z.ZodOptional>; width: z.ZodOptional; height: z.ZodOptional; work_slice_ms: z.ZodOptional>; html: z.ZodOptional; metadata: z.ZodOptional>; duration_ms: z.ZodOptional; strategy: z.ZodOptional>>; backend: z.ZodOptional>>; output: z.ZodOptional; video: z.ZodObject<{ codec: z.ZodLiteral<"h264">; }, "strip", z.ZodTypeAny, { codec: "h264"; }, { codec: "h264"; }>; audio: z.ZodObject<{ codec: z.ZodLiteral<"aac">; }, "strip", z.ZodTypeAny, { codec: "aac"; }, { codec: "aac"; }>; }, "strip", z.ZodTypeAny, { video: { codec: "h264"; }; audio: { codec: "aac"; }; container: "mp4"; }, { video: { codec: "h264"; }; audio: { codec: "aac"; }; container: "mp4"; }>, z.ZodObject<{ container: z.ZodLiteral<"jpeg">; quality: z.ZodOptional>; }, "strip", z.ZodTypeAny, { container: "jpeg"; quality?: number | undefined; }, { container: "jpeg"; quality?: number | undefined; }>, z.ZodObject<{ container: z.ZodLiteral<"png">; compression: z.ZodOptional>; transparency: z.ZodOptional>; }, "strip", z.ZodTypeAny, { container: "png"; compression?: number | undefined; transparency?: boolean | undefined; }, { container: "png"; compression?: number | undefined; transparency?: boolean | undefined; }>, z.ZodObject<{ container: z.ZodLiteral<"webp">; quality: z.ZodOptional>; compression: z.ZodOptional>; transparency: z.ZodOptional>; }, "strip", z.ZodTypeAny, { container: "webp"; quality?: number | undefined; compression?: number | undefined; transparency?: boolean | undefined; }, { container: "webp"; quality?: number | undefined; compression?: number | undefined; transparency?: boolean | undefined; }>]>>>; }, "strip", z.ZodTypeAny, { md5?: string | undefined; height?: number | undefined; width?: number | undefined; duration_ms?: number | undefined; fps?: number | undefined; work_slice_ms?: number | undefined; html?: string | undefined; metadata?: Record | undefined; strategy?: "v1" | undefined; backend?: "cpu" | "gpu" | undefined; output?: { video: { codec: "h264"; }; audio: { codec: "aac"; }; container: "mp4"; } | { container: "jpeg"; quality?: number | undefined; } | { container: "png"; compression?: number | undefined; transparency?: boolean | undefined; } | { container: "webp"; quality?: number | undefined; compression?: number | undefined; transparency?: boolean | undefined; } | undefined; }, { md5?: string | undefined; height?: number | undefined; width?: number | undefined; duration_ms?: number | undefined; fps?: number | undefined; work_slice_ms?: number | undefined; html?: string | undefined; metadata?: Record | undefined; strategy?: "v1" | undefined; backend?: "cpu" | "gpu" | undefined; output?: { video: { codec: "h264"; }; audio: { codec: "aac"; }; container: "mp4"; } | { container: "jpeg"; quality?: number | undefined; } | { container: "png"; compression?: number | undefined; transparency?: boolean | undefined; } | { container: "webp"; quality?: number | undefined; compression?: number | undefined; transparency?: boolean | undefined; } | undefined; }>; declare class OutputConfiguration { readonly output: RenderOutputConfiguration; static parse(input?: any): OutputConfiguration; constructor(output: RenderOutputConfiguration); get isStill(): boolean; get isVideo(): boolean; get fileExtension(): "mp4" | "jpeg" | "png" | "webp"; get contentType(): string; get container(): "mp4" | "jpeg" | "png" | "webp"; get jpegConfig(): { container: "jpeg"; quality?: number | undefined; } | null; get pngConfig(): { container: "png"; compression?: number | undefined; transparency?: boolean | undefined; } | null; get webpConfig(): { container: "webp"; quality?: number | undefined; compression?: number | undefined; transparency?: boolean | undefined; } | null; get mp4Config(): { video: { codec: "h264"; }; audio: { codec: "aac"; }; container: "mp4"; } | null; } interface CreateRenderPayload { md5?: string; fps?: number; width?: number; height?: number; work_slice_ms?: number; html?: string; duration_ms?: number; metadata?: Record; strategy?: "v1"; backend?: "cpu" | "gpu"; output?: z.infer; } interface CreateRenderResult { id: string; md5: string | null; status: "complete" | "created" | "failed" | "pending" | "rendering" | string; metadata: Record; error: { message: string; } | null; } interface LookupRenderByMd5Result { id: string; md5: string | null; status: "complete" | "created" | "failed" | "pending" | "rendering" | string; metadata: Record; error: { message: string; } | null; } declare const createRender: (client: Client, payload: CreateRenderPayload) => Promise; declare const uploadRender: (client: Client, renderId: string, fileStream: ReadableStream) => Promise; declare const getRenderInfo: (client: Client, id: string) => Promise; declare const lookupRenderByMd5: (client: Client, md5: string) => Promise; declare const getRenderProgress: (client: Client, id: string) => Promise; declare const downloadRender: (client: Client, id: string) => Promise; //#endregion export { CreateRenderPayload, CreateRenderResult, LookupRenderByMd5Result, OutputConfiguration, RenderOutputConfiguration, createRender, downloadRender, getRenderInfo, getRenderProgress, lookupRenderByMd5, uploadRender }; //# sourceMappingURL=renders.d.ts.map