import type { Composition } from "../../composition.js";
/**
 * The maximum clip end across every track — the content's natural end and the
 * value `{ auto: true }` derives. `Math.max(0, …)` so an empty composition
 * (no tracks / no clips) yields 0 rather than -Infinity. Exported so the bridge
 * can report whether an explicit duration truncates content without re-deriving.
 */
export declare function compositionContentEnd(comp: Composition): number;
/**
 * Set `comp.duration` IN PLACE.
 *
 * `{ durationSec }` writes an explicit non-negative finite length (shortening
 * below content end is permitted). `{ auto: true }` derives the length from the
 * maximum clip end (`compositionContentEnd`), matching the store's grow-only口径.
 *
 * Throws `CompositionOpError{code:4}` when `durationSec` is not a finite,
 * non-negative number.
 */
export declare function setCompositionDuration(comp: Composition, p: {
    durationSec: number;
} | {
    auto: true;
}): void;
//# sourceMappingURL=setDuration.d.ts.map