import type { RuntimeContext } from "./state/context.js"; export type WithLockOptions = { ownerId?: string; timeoutMs?: number; warnAfterMs?: number; }; export type LockRelease = () => void; export declare function lockReleaserKey(name: string, ownerId: string): string; export declare function acquireLocalLock(ctx: RuntimeContext, name: string, opts?: WithLockOptions): Promise; export declare function runLocalLock(ctx: RuntimeContext, name: string, fn: () => T | Promise, opts?: WithLockOptions): Promise; export declare function withLockOnCtx(ctx: RuntimeContext, name: string, fn: () => T | Promise, opts?: WithLockOptions): Promise;