/**
 * Convert time ↔ pixels using a linear mapping.
 *
 * Required mapping (adapted to a visible window):
 * - px = ((time - windowStart) / windowSeconds) * timelineWidth
 * - time = windowStart + (px / timelineWidth) * windowSeconds
 */
export declare function clamp(value: number, min: number, max: number): number;
export declare function timeToPx(params: {
    time: number;
    windowStart: number;
    windowSeconds: number;
    width: number;
}): number;
export declare function pxToTime(params: {
    px: number;
    windowStart: number;
    windowSeconds: number;
    width: number;
}): number;
