export type LTEscalationStatus = 'pending' | 'resolved' | 'cancelled'; export type LTEscalationPriority = 1 | 2 | 3 | 4; export interface LTEscalationRecord { id: string; type: string; subtype: string; description: string | null; status: LTEscalationStatus; priority: LTEscalationPriority; task_id: string | null; origin_id: string | null; parent_id: string | null; workflow_id: string | null; task_queue: string | null; workflow_type: string | null; signal_key: string | null; role: string; assigned_to: string | null; assigned_until: Date | null; resolved_at: Date | null; claimed_at: Date | null; envelope: string; metadata: Record | null; escalation_payload: string | null; resolver_payload: string | null; trace_id: string | null; span_id: string | null; created_at: Date; updated_at: Date; } /** * An escalation is "effectively claimed" when assigned_to is set * and assigned_until is in the future. Status remains 'pending'. */ export declare function isEffectivelyClaimed(esc: LTEscalationRecord): boolean; /** * An escalation is "available" when status is pending and * either unassigned or the assignment has expired. */ export declare function isAvailable(esc: LTEscalationRecord): boolean;