import { z } from "zod"; /** Clock domain. host = WindowServer mach time; pts = sample PTS; movie = writer timeline. */ export declare const TimeDomain: z.ZodEnum<["host", "pts", "movie"]>; export type TimeDomain = z.infer; export declare const TimeRef: z.ZodObject<{ domain: z.ZodEnum<["host", "pts", "movie"]>; ticks: z.ZodString; timescale: z.ZodNumber; }, "strict", z.ZodTypeAny, { domain: "host" | "pts" | "movie"; ticks: string; timescale: number; }, { domain: "host" | "pts" | "movie"; ticks: string; timescale: number; }>; export type TimeRef = z.infer; /** * Authored/compiled duration as an exact rational (e.g. "0.8s" → {num:4,den:5}). * Used in cut and runtime contracts (offsets, dwell, timeouts). Structurally identical to the * internal Rational, but the wire form requires a positive denominator. */ export declare const Duration: z.ZodObject<{ num: z.ZodNumber; den: z.ZodNumber; }, "strict", z.ZodTypeAny, { num: number; den: number; }, { num: number; den: number; }>; export type Duration = z.infer; export declare function timeRef(domain: TimeDomain, ticks: bigint | number | string, timescale: number): TimeRef; /** Read ticks as a bigint (the lossless integer they encode). */ export declare function ticksOf(t: TimeRef): bigint; /** Seconds as a float — for display/inspection only, never for frame math. */ export declare function timeRefSeconds(t: TimeRef): number; //# sourceMappingURL=time.d.ts.map