import type { Database } from "bun:sqlite";
import type { CreateDispatchInput, Dispatch, DispatchLog, DispatchStatus, ListDispatchesFilter } from "../types/index.js";
export declare function createDispatch(input: CreateDispatchInput, db?: Database): Dispatch;
export declare function getDispatch(id: string, db?: Database): Dispatch;
export declare function listDispatches(filter?: ListDispatchesFilter, db?: Database): Dispatch[];
export declare function cancelDispatch(id: string, db?: Database): Dispatch;
export declare function updateDispatchStatus(id: string, status: DispatchStatus, opts?: {
    error?: string;
    sent_at?: string;
}, db?: Database): void;
export declare function createDispatchLog(log: Omit<DispatchLog, "id" | "created_at">, db?: Database): DispatchLog;
export declare function listDispatchLogs(dispatchId: string, db?: Database): DispatchLog[];
/** Return all dispatches that are ready to fire (pending + due). */
export declare function getDueDispatches(db?: Database): Dispatch[];
//# sourceMappingURL=dispatches.d.ts.map