export type FleetErrorCode = 'role_not_found' | 'resource_not_found' | 'capability_unavailable' | 'invalid_request' | 'offline' | 'control_unavailable' | 'timeout' | 'rejected' | 'backend_failure' | 'conflict' | 'stale_state' | 'prerequisite_unavailable' | 'idempotency_conflict' | 'rollback_incomplete' | 'launched_unconfirmed' | 'unauthorized' | 'forbidden' | 'rate_limited' | 'incompatible_version' | 'internal'; export interface FleetErrorShape { code: FleetErrorCode; message: string; provesOffline: boolean; retryable: boolean; requestId: string; details?: Record; } export declare class FleetError extends Error implements FleetErrorShape { readonly code: FleetErrorCode; readonly options: { provesOffline?: boolean; retryable?: boolean; requestId?: string; details?: Record; }; readonly requestId: string; constructor(code: FleetErrorCode, message: string, options?: { provesOffline?: boolean; retryable?: boolean; requestId?: string; details?: Record; }); get provesOffline(): boolean; get retryable(): boolean; get details(): Record | undefined; toJSON(): FleetErrorShape; } export declare function safeLine(input: string, max?: number): string; export declare function normalizeError(error: unknown, requestId?: string): FleetError;