export declare const WORKER_ID_PATTERN: RegExp; export interface DeviceState { workerId: string; /** Worker-bound child PAT minted by the installation login. */ workerApiToken?: string; /** Epoch ms hard expiry for workerApiToken. */ expiresAt?: number; } export declare function loadDeviceState(context: string, platform: string): Promise; /** Replace credentials for an already-saved identity without changing its id. */ export declare function updateDeviceState(context: string, platform: string, state: DeviceState): Promise; /** Persist one completed setup without allowing two first boots to race. */ export declare function saveDeviceState(context: string, platform: string, state: DeviceState): Promise; //# sourceMappingURL=device-state.d.ts.map