import type { ClockConfigSnapshot, ClockReservation, ClockScheduleItem, ClockTask, ClockTaskUpdatePatch } from './types.js';
export declare function parseDueAtMs(value: unknown): number | null;
export declare function listClockSessionIds(): Promise<string[]>;
export declare function listClockTasks(sessionId: string, config: ClockConfigSnapshot): Promise<ClockTask[]>;
export declare function scheduleClockTasks(sessionId: string, items: ClockScheduleItem[], config: ClockConfigSnapshot): Promise<ClockTask[]>;
export declare function updateClockTask(sessionId: string, taskId: string, patch: ClockTaskUpdatePatch, config: ClockConfigSnapshot): Promise<ClockTask | null>;
export declare function cancelClockTask(sessionId: string, taskId: string, config: ClockConfigSnapshot): Promise<boolean>;
export declare function clearClockTasks(sessionId: string, config: ClockConfigSnapshot): Promise<number>;
export declare function selectDueUndeliveredTasks(tasks: ClockTask[], config: ClockConfigSnapshot, atMs: number): ClockTask[];
export declare function findNextUndeliveredDueAtMs(tasks: ClockTask[], atMs: number): number | null;
export declare function reserveDueTasksForRequest(args: {
    reservationId: string;
    sessionId: string;
    config: ClockConfigSnapshot;
    requestId?: string;
}): Promise<{
    reservation: ClockReservation | null;
    injectText?: string;
}>;
export declare function commitClockReservation(reservation: ClockReservation, config: ClockConfigSnapshot): Promise<void>;
