import { type ChildProcessWithoutNullStreams } from 'node:child_process'; type StartLeaseProcess = (script: string) => ChildProcessWithoutNullStreams; export interface RunnerLeaseOptions { lockPath?: string; start?: StartLeaseProcess; onWait?: (owner: string) => void; } export interface RunnerLease { owner: string; waitedMs: number; run(command: string): Promise; release(): Promise; } export declare function runnerLeaseScript(owner: string, lockPath?: string): string; export declare function acquireRunnerLease(runner: string, owner: string, options?: RunnerLeaseOptions): Promise; export {};