import type { ChromiumOptions, StillImageFormat, ToOptions } from '@remotion/renderer'; import { BrowserSafeApis } from '@remotion/renderer/client'; import type { z } from 'zod'; import type { Privacy } from '../defaults'; import type { CloudRunPayload, DownloadBehavior } from '../functions/helpers/payloads'; import type { GcpRegion } from '../pricing/gcp-regions'; type MandatoryParameters = { region: GcpRegion; serveUrl: string; composition: string; imageFormat: StillImageFormat; }; type OptionalParameters = { cloudRunUrl: string | null; serviceName: string | null; inputProps: Record; privacy: Privacy; forceBucketName: string | null; outName: string | null; envVariables: Record; frame: number; chromiumOptions: ChromiumOptions; forceWidth: number | null; forceHeight: number | null; forceFps: number | null; forceDurationInFrames: number | null; indent: boolean; downloadBehavior: DownloadBehavior; renderIdOverride: z.infer['renderIdOverride']; renderStatusWebhook: z.infer['renderStatusWebhook']; } & ToOptions; export type RenderStillOnCloudrunInput = Partial & MandatoryParameters; export declare const renderStillOnCloudrun: (options: RenderStillOnCloudrunInput) => Promise<{ type: "success"; publicUrl?: string | null | undefined; cloudStorageUri: string; size: number; bucketName: string; renderId: string; privacy: "project-private" | "public-read"; } | { type: "error"; message: string; name: string; stack: string; } | { type: "crash"; cloudRunEndpoint: string; message: "Service crashed without sending a response. Check the logs in GCP console."; requestStartTime: string; requestCrashTime: string; requestElapsedTimeInSeconds: number; }>; export {};