import type { PostgresJsDatabase } from "drizzle-orm/postgres-js"; import type { CreateGroundDispatchInput, CreateGroundExecutionEventInput, CreateGroundTransferPreferenceInput, GroundDispatchListQuery, GroundExecutionEventListQuery, GroundTransferPreferenceListQuery, UpdateGroundDispatchInput, UpdateGroundExecutionEventInput, UpdateGroundTransferPreferenceInput } from "./service-shared.js"; export declare function listTransferPreferences(db: PostgresJsDatabase, query: GroundTransferPreferenceListQuery): Promise>; export declare function getTransferPreferenceById(db: PostgresJsDatabase, id: string): Promise<{ id: string; bookingId: string; bookingItemId: string | null; pickupFacilityId: string | null; dropoffFacilityId: string | null; pickupAddressId: string | null; dropoffAddressId: string | null; requestedVehicleCategory: "other" | "car" | "sedan" | "suv" | "van" | "minibus" | "bus" | "boat" | "train" | null; requestedVehicleClass: "other" | "economy" | "standard" | "premium" | "luxury" | "accessible" | null; serviceLevel: "other" | "private" | "shared" | "vip" | "shuttle"; passengerCount: number | null; checkedBags: number | null; carryOnBags: number | null; wheelchairCount: number | null; childSeatCount: number | null; driverLanguage: string | null; meetAndGreet: boolean; accessibilityNotes: string | null; pickupNotes: string | null; dropoffNotes: string | null; notes: string | null; createdAt: Date; updatedAt: Date; } | null>; export declare function createTransferPreference(db: PostgresJsDatabase, data: CreateGroundTransferPreferenceInput): Promise<{ id: string; notes: string | null; createdAt: Date; updatedAt: Date; bookingId: string; bookingItemId: string | null; pickupFacilityId: string | null; dropoffFacilityId: string | null; pickupAddressId: string | null; dropoffAddressId: string | null; requestedVehicleCategory: "other" | "car" | "sedan" | "suv" | "van" | "minibus" | "bus" | "boat" | "train" | null; requestedVehicleClass: "other" | "economy" | "standard" | "premium" | "luxury" | "accessible" | null; serviceLevel: "other" | "private" | "shared" | "vip" | "shuttle"; passengerCount: number | null; checkedBags: number | null; carryOnBags: number | null; wheelchairCount: number | null; childSeatCount: number | null; driverLanguage: string | null; meetAndGreet: boolean; accessibilityNotes: string | null; pickupNotes: string | null; dropoffNotes: string | null; } | undefined>; export declare function updateTransferPreference(db: PostgresJsDatabase, id: string, data: UpdateGroundTransferPreferenceInput): Promise<{ id: string; bookingId: string; bookingItemId: string | null; pickupFacilityId: string | null; dropoffFacilityId: string | null; pickupAddressId: string | null; dropoffAddressId: string | null; requestedVehicleCategory: "other" | "car" | "sedan" | "suv" | "van" | "minibus" | "bus" | "boat" | "train" | null; requestedVehicleClass: "other" | "economy" | "standard" | "premium" | "luxury" | "accessible" | null; serviceLevel: "other" | "private" | "shared" | "vip" | "shuttle"; passengerCount: number | null; checkedBags: number | null; carryOnBags: number | null; wheelchairCount: number | null; childSeatCount: number | null; driverLanguage: string | null; meetAndGreet: boolean; accessibilityNotes: string | null; pickupNotes: string | null; dropoffNotes: string | null; notes: string | null; createdAt: Date; updatedAt: Date; } | null>; export declare function deleteTransferPreference(db: PostgresJsDatabase, id: string): Promise<{ id: string; } | null>; export declare function listDispatches(db: PostgresJsDatabase, query: GroundDispatchListQuery): Promise>; export declare function getDispatchById(db: PostgresJsDatabase, id: string): Promise<{ id: string; transferPreferenceId: string; bookingId: string; bookingItemId: string | null; operatorId: string | null; vehicleId: string | null; driverId: string | null; serviceDate: string | null; scheduledPickupAt: Date | null; scheduledDropoffAt: Date | null; actualPickupAt: Date | null; actualDropoffAt: Date | null; status: "cancelled" | "completed" | "assigned" | "draft" | "scheduled" | "en_route" | "arrived" | "picked_up" | "no_show"; passengerCount: number | null; checkedBags: number | null; carryOnBags: number | null; notes: string | null; createdAt: Date; updatedAt: Date; } | null>; export declare function createDispatch(db: PostgresJsDatabase, data: CreateGroundDispatchInput): Promise<{ id: string; status: "cancelled" | "completed" | "assigned" | "draft" | "scheduled" | "en_route" | "arrived" | "picked_up" | "no_show"; notes: string | null; createdAt: Date; updatedAt: Date; bookingId: string; bookingItemId: string | null; operatorId: string | null; passengerCount: number | null; checkedBags: number | null; carryOnBags: number | null; transferPreferenceId: string; vehicleId: string | null; driverId: string | null; serviceDate: string | null; scheduledPickupAt: Date | null; scheduledDropoffAt: Date | null; actualPickupAt: Date | null; actualDropoffAt: Date | null; } | undefined>; export declare function updateDispatch(db: PostgresJsDatabase, id: string, data: UpdateGroundDispatchInput): Promise<{ id: string; transferPreferenceId: string; bookingId: string; bookingItemId: string | null; operatorId: string | null; vehicleId: string | null; driverId: string | null; serviceDate: string | null; scheduledPickupAt: Date | null; scheduledDropoffAt: Date | null; actualPickupAt: Date | null; actualDropoffAt: Date | null; status: "cancelled" | "completed" | "assigned" | "draft" | "scheduled" | "en_route" | "arrived" | "picked_up" | "no_show"; passengerCount: number | null; checkedBags: number | null; carryOnBags: number | null; notes: string | null; createdAt: Date; updatedAt: Date; } | null>; export declare function deleteDispatch(db: PostgresJsDatabase, id: string): Promise<{ id: string; } | null>; export declare function listExecutionEvents(db: PostgresJsDatabase, query: GroundExecutionEventListQuery): Promise | null; createdAt: Date; }>>; export declare function getExecutionEventById(db: PostgresJsDatabase, id: string): Promise<{ id: string; dispatchId: string; eventType: "cancelled" | "assigned" | "scheduled" | "driver_en_route" | "driver_arrived" | "pickup_completed" | "dropoff_completed" | "issue" | "note"; occurredAt: Date; facilityId: string | null; addressId: string | null; notes: string | null; metadata: Record | null; createdAt: Date; } | null>; export declare function createExecutionEvent(db: PostgresJsDatabase, data: CreateGroundExecutionEventInput): Promise<{ id: string; facilityId: string | null; notes: string | null; createdAt: Date; metadata: Record | null; addressId: string | null; dispatchId: string; eventType: "cancelled" | "assigned" | "scheduled" | "driver_en_route" | "driver_arrived" | "pickup_completed" | "dropoff_completed" | "issue" | "note"; occurredAt: Date; } | undefined>; export declare function updateExecutionEvent(db: PostgresJsDatabase, id: string, data: UpdateGroundExecutionEventInput): Promise<{ id: string; dispatchId: string; eventType: "cancelled" | "assigned" | "scheduled" | "driver_en_route" | "driver_arrived" | "pickup_completed" | "dropoff_completed" | "issue" | "note"; occurredAt: Date; facilityId: string | null; addressId: string | null; notes: string | null; metadata: Record | null; createdAt: Date; } | null>; export declare function deleteExecutionEvent(db: PostgresJsDatabase, id: string): Promise<{ id: string; } | null>;