import type { PostgresJsDatabase } from "drizzle-orm/postgres-js"; import type { CreateGroundDispatchAssignmentInput, CreateGroundDispatchCheckpointInput, CreateGroundDispatchLegInput, CreateGroundDispatchPassengerInput, CreateGroundServiceIncidentInput, GroundDispatchAssignmentListQuery, GroundDispatchCheckpointListQuery, GroundDispatchLegListQuery, GroundDispatchPassengerListQuery, GroundServiceIncidentListQuery, UpdateGroundDispatchAssignmentInput, UpdateGroundDispatchCheckpointInput, UpdateGroundDispatchLegInput, UpdateGroundDispatchPassengerInput, UpdateGroundServiceIncidentInput } from "./service-shared.js"; export declare function listDispatchAssignments(db: PostgresJsDatabase, query: GroundDispatchAssignmentListQuery): Promise | null; createdAt: Date; updatedAt: Date; }>>; export declare function getDispatchAssignmentById(db: PostgresJsDatabase, id: string): Promise<{ id: string; dispatchId: string; operatorId: string | null; vehicleId: string | null; driverId: string | null; assignmentSource: "manual" | "suggested" | "auto"; assignedAt: Date; acceptedAt: Date | null; notes: string | null; metadata: Record | null; createdAt: Date; updatedAt: Date; } | null>; export declare function createDispatchAssignment(db: PostgresJsDatabase, data: CreateGroundDispatchAssignmentInput): Promise<{ id: string; notes: string | null; createdAt: Date; updatedAt: Date; metadata: Record | null; operatorId: string | null; vehicleId: string | null; driverId: string | null; dispatchId: string; assignmentSource: "manual" | "suggested" | "auto"; assignedAt: Date; acceptedAt: Date | null; } | undefined>; export declare function updateDispatchAssignment(db: PostgresJsDatabase, id: string, data: UpdateGroundDispatchAssignmentInput): Promise<{ id: string; dispatchId: string; operatorId: string | null; vehicleId: string | null; driverId: string | null; assignmentSource: "manual" | "suggested" | "auto"; assignedAt: Date; acceptedAt: Date | null; notes: string | null; metadata: Record | null; createdAt: Date; updatedAt: Date; } | null>; export declare function deleteDispatchAssignment(db: PostgresJsDatabase, id: string): Promise<{ id: string; } | null>; export declare function listDispatchLegs(db: PostgresJsDatabase, query: GroundDispatchLegListQuery): Promise | null; createdAt: Date; updatedAt: Date; }>>; export declare function getDispatchLegById(db: PostgresJsDatabase, id: string): Promise<{ id: string; dispatchId: string; sequence: number; legType: "pickup" | "dropoff" | "stop" | "deadhead"; facilityId: string | null; addressId: string | null; scheduledAt: Date | null; actualAt: Date | null; notes: string | null; metadata: Record | null; createdAt: Date; updatedAt: Date; } | null>; export declare function createDispatchLeg(db: PostgresJsDatabase, data: CreateGroundDispatchLegInput): Promise<{ id: string; facilityId: string | null; notes: string | null; createdAt: Date; updatedAt: Date; metadata: Record | null; sequence: number; addressId: string | null; dispatchId: string; legType: "pickup" | "dropoff" | "stop" | "deadhead"; scheduledAt: Date | null; actualAt: Date | null; } | undefined>; export declare function updateDispatchLeg(db: PostgresJsDatabase, id: string, data: UpdateGroundDispatchLegInput): Promise<{ id: string; dispatchId: string; sequence: number; legType: "pickup" | "dropoff" | "stop" | "deadhead"; facilityId: string | null; addressId: string | null; scheduledAt: Date | null; actualAt: Date | null; notes: string | null; metadata: Record | null; createdAt: Date; updatedAt: Date; } | null>; export declare function deleteDispatchLeg(db: PostgresJsDatabase, id: string): Promise<{ id: string; } | null>; export declare function listDispatchPassengers(db: PostgresJsDatabase, query: GroundDispatchPassengerListQuery): Promise>; export declare function getDispatchPassengerById(db: PostgresJsDatabase, id: string): Promise<{ id: string; dispatchId: string; participantId: string | null; displayName: string | null; seatLabel: string | null; notes: string | null; createdAt: Date; updatedAt: Date; } | null>; export declare function createDispatchPassenger(db: PostgresJsDatabase, data: CreateGroundDispatchPassengerInput): Promise<{ id: string; notes: string | null; createdAt: Date; updatedAt: Date; dispatchId: string; participantId: string | null; displayName: string | null; seatLabel: string | null; } | undefined>; export declare function updateDispatchPassenger(db: PostgresJsDatabase, id: string, data: UpdateGroundDispatchPassengerInput): Promise<{ id: string; dispatchId: string; participantId: string | null; displayName: string | null; seatLabel: string | null; notes: string | null; createdAt: Date; updatedAt: Date; } | null>; export declare function deleteDispatchPassenger(db: PostgresJsDatabase, id: string): Promise<{ id: string; } | null>; export declare function listServiceIncidents(db: PostgresJsDatabase, query: GroundServiceIncidentListQuery): Promise | null; createdAt: Date; updatedAt: Date; }>>; export declare function getServiceIncidentById(db: PostgresJsDatabase, id: string): Promise<{ id: string; dispatchId: string; severity: "warning" | "critical" | "info"; incidentType: string; resolutionStatus: "open" | "cancelled" | "mitigated" | "resolved"; openedAt: Date; resolvedAt: Date | null; notes: string | null; metadata: Record | null; createdAt: Date; updatedAt: Date; } | null>; export declare function createServiceIncident(db: PostgresJsDatabase, data: CreateGroundServiceIncidentInput): Promise<{ id: string; notes: string | null; createdAt: Date; updatedAt: Date; severity: "warning" | "critical" | "info"; metadata: Record | null; dispatchId: string; incidentType: string; resolutionStatus: "open" | "cancelled" | "mitigated" | "resolved"; openedAt: Date; resolvedAt: Date | null; } | undefined>; export declare function updateServiceIncident(db: PostgresJsDatabase, id: string, data: UpdateGroundServiceIncidentInput): Promise<{ id: string; dispatchId: string; severity: "warning" | "critical" | "info"; incidentType: string; resolutionStatus: "open" | "cancelled" | "mitigated" | "resolved"; openedAt: Date; resolvedAt: Date | null; notes: string | null; metadata: Record | null; createdAt: Date; updatedAt: Date; } | null>; export declare function deleteServiceIncident(db: PostgresJsDatabase, id: string): Promise<{ id: string; } | null>; export declare function listDispatchCheckpoints(db: PostgresJsDatabase, query: GroundDispatchCheckpointListQuery): Promise | null; createdAt: Date; updatedAt: Date; }>>; export declare function getDispatchCheckpointById(db: PostgresJsDatabase, id: string): Promise<{ id: string; dispatchId: string; sequence: number; checkpointType: string; status: "cancelled" | "pending" | "reached" | "missed"; plannedAt: Date | null; actualAt: Date | null; facilityId: string | null; addressId: string | null; notes: string | null; metadata: Record | null; createdAt: Date; updatedAt: Date; } | null>; export declare function createDispatchCheckpoint(db: PostgresJsDatabase, data: CreateGroundDispatchCheckpointInput): Promise<{ id: string; facilityId: string | null; status: "cancelled" | "pending" | "reached" | "missed"; notes: string | null; createdAt: Date; updatedAt: Date; metadata: Record | null; sequence: number; addressId: string | null; dispatchId: string; actualAt: Date | null; checkpointType: string; plannedAt: Date | null; } | undefined>; export declare function updateDispatchCheckpoint(db: PostgresJsDatabase, id: string, data: UpdateGroundDispatchCheckpointInput): Promise<{ id: string; dispatchId: string; sequence: number; checkpointType: string; status: "cancelled" | "pending" | "reached" | "missed"; plannedAt: Date | null; actualAt: Date | null; facilityId: string | null; addressId: string | null; notes: string | null; metadata: Record | null; createdAt: Date; updatedAt: Date; } | null>; export declare function deleteDispatchCheckpoint(db: PostgresJsDatabase, id: string): Promise<{ id: string; } | null>;