import type { BleErrorCode } from './errors.js'; export type BleRecoveryDisposition = 'none' | 'retry-immediately' | 'retry-with-backoff' | 'after-state-change' | 'after-user-action' | 'caller-policy'; export type RecoveryAction = { readonly kind: 'request-permission'; readonly permission: string; } | { readonly kind: 'open-settings'; readonly target: 'app' | 'bluetooth' | 'location'; } | { readonly kind: 'wait-for-adapter'; readonly desired: 'powered-on' | 'available'; } | { readonly kind: 'rescan'; } | { readonly kind: 'reselect-peer'; } | { readonly kind: 'reconnect'; } | { readonly kind: 'rediscover-gatt'; } | { readonly kind: 'select-gatt-occurrence'; } | { readonly kind: 'pair'; } | { readonly kind: 'repair'; } | { readonly kind: 'reduce-payload'; readonly maximumBytes: number | null; } | { readonly kind: 'wait-for-write-ready'; } | { readonly kind: 'recreate-manager'; } | { readonly kind: 'retry'; readonly afterMs: number | null; }; export interface BleRecovery { readonly disposition: BleRecoveryDisposition; readonly actions: readonly RecoveryAction[]; } export declare function recoveryForCode(code: BleErrorCode, operation: string): BleRecovery; //# sourceMappingURL=recovery.d.ts.map