import type { RuntimeState } from './config.js'; import type { LocalControlStatus, ShutdownAccepted, ShutdownReason } from './local-control.js'; export declare class LocalControlUnavailableError extends Error { constructor(message: string, options?: ErrorOptions); } export declare class LocalControlResponseError extends Error { readonly status: number; readonly code: string; constructor(status: number, code: string, message: string); } export declare function getLocalControlStatus(state: RuntimeState, timeoutMs?: number): Promise; export declare function requestLocalControlShutdown(state: RuntimeState, reason: ShutdownReason, options?: { expectedProcessInstanceId?: string; jobId?: string; targetVersion?: string; lockNonce?: string; workerPid?: number; workerProcessStartIdentity?: string; }, timeoutMs?: number): Promise;