import type { AnyDrizzleDb } from "@voyant-travel/db"; import { type SQL } from "drizzle-orm"; export type BookingActionLedgerDriftCheck = "booking_confirmed" | "booking_expired" | "booking_cancelled" | "booking_completed" | "booking_item" | "booking_traveler" | "booking_traveler_travel_details"; export interface CheckBookingActionLedgerDriftInput { createdAtFrom?: Date | string | null; sampleLimit?: number | null; } export interface BookingActionLedgerDriftRow { check: BookingActionLedgerDriftCheck; missingCount: number; sampleIds: string[]; } export interface CheckBookingActionLedgerDriftResult { ok: boolean; rows: BookingActionLedgerDriftRow[]; } interface BookingActionLedgerDriftQueryRow extends Record { check: BookingActionLedgerDriftCheck; missing_count: number | string; sample_ids: string[] | null; } export declare function buildBookingActionLedgerDriftQueries(input?: CheckBookingActionLedgerDriftInput): Record>; export declare function checkBookingActionLedgerDrift(db: AnyDrizzleDb, input?: CheckBookingActionLedgerDriftInput): Promise; declare function normalizeRow(row: BookingActionLedgerDriftQueryRow): BookingActionLedgerDriftRow; export declare const __test__: { normalizeRow: typeof normalizeRow; }; export {};