import type { AnchorPoint, AnchorPreset, ImageOverlay as NativeImageOverlay, ImageOverlaySize as NativeImageOverlaySize, TextOverlay as NativeTextOverlay, TextStyle } from './nitro/VideoPipeline.nitro'; import type { OverlaySize, TimeRange } from './types'; /** * Public image overlay. Carries the same `OverlaySize` shape (`width` / * `height`) on output that the `Overlay.Image` builder accepts on input — * callers can read, transform, or serialize the returned object using the * same vocabulary they constructed it with. The wrapper in `./video.ts` * converts to the Nitro boundary shape (`{ w, h }`) before crossing. */ export type ImageOverlay = Omit & { kind: 'image'; size: OverlaySize; }; export type TextOverlay = Omit & { kind: 'text'; }; export type Overlay = ImageOverlay | TextOverlay; /** Internal: convert the public `OverlaySize` (`width`/`height`) into the * Nitro boundary shape (`{ w, h }`). Used by `./video.ts` when building the * native spec. Exported so the wrapper can share one definition. */ export declare function toNativeOverlaySize(size: OverlaySize): NativeImageOverlaySize; export interface ImageOverlayInput { uri: string; anchor: AnchorPreset | AnchorPoint; size: OverlaySize; opacity?: number; timeRange?: TimeRange; } export interface TextOverlayInput { text: string; style: TextStyle; anchor: AnchorPreset | AnchorPoint; timeRange?: TimeRange; } declare function image(input: ImageOverlayInput): ImageOverlay; declare function text(input: TextOverlayInput): TextOverlay; export declare const Overlay: { readonly Image: typeof image; readonly Text: typeof text; }; export {}; //# sourceMappingURL=overlay.d.ts.map