import type { AnyZodObject } from './any-zod-type.js'; import type { CalculateMetadataFunction } from './Composition.js'; import type { InferProps } from './props-if-has-props.js'; import type { VideoConfig } from './video-config.js'; type ResolveVideoConfigParams = { compositionId: string; compositionWidth: number | null; compositionHeight: number | null; compositionFps: number | null; compositionDurationInFrames: number | null; calculateMetadata: CalculateMetadataFunction>> | null; signal: AbortSignal; defaultProps: Record; inputProps: Record; schema: AnyZodObject | null; }; export type VideoConfigMetadataSource = { readonly durationInFrames: 'calculate-metadata' | 'composition'; readonly fps: 'calculate-metadata' | 'composition'; readonly height: 'calculate-metadata' | 'composition'; readonly width: 'calculate-metadata' | 'composition'; }; export type VideoConfigWithMetadata = { readonly metadataSource: VideoConfigMetadataSource; readonly videoConfig: VideoConfig; }; export declare const resolveVideoConfigWithMetadata: ({ calculateMetadata, signal, defaultProps, inputProps: originalProps, compositionId, compositionDurationInFrames, compositionFps, compositionHeight, compositionWidth, schema, }: ResolveVideoConfigParams) => VideoConfigWithMetadata | Promise; export declare const resolveVideoConfig: (params: ResolveVideoConfigParams) => VideoConfig | Promise; export declare const resolveVideoConfigWithMetadataOrCatch: (params: ResolveVideoConfigParams) => { type: 'success'; result: VideoConfigWithMetadata | Promise; } | { type: 'error'; error: Error; }; export declare const resolveVideoConfigOrCatch: (params: ResolveVideoConfigParams) => { type: 'success'; result: VideoConfig | Promise; } | { type: 'error'; error: Error; }; export {};