/** * Thrown by all lock operations for system errors, timeouts, and failures. * Use `code` to distinguish error types and `context` for debugging details. */ export declare class LockError extends Error { code: "ServiceUnavailable" | "AuthFailed" | "InvalidArgument" | "RateLimited" | "NetworkTimeout" | "AcquisitionTimeout" | "Aborted" | "Internal"; /** Debugging context: lock key, ID, and underlying error */ context?: { key?: string; lockId?: string; cause?: unknown; } | undefined; constructor(code: "ServiceUnavailable" | "AuthFailed" | "InvalidArgument" | "RateLimited" | "NetworkTimeout" | "AcquisitionTimeout" | "Aborted" | "Internal", // Unexpected backend errors or quota limits message?: string, /** Debugging context: lock key, ID, and underlying error */ context?: { key?: string; lockId?: string; cause?: unknown; } | undefined); }