interface QueryResultLike { rows: Array>; rowCount?: number | null; } interface PgClientLike { query(text: string, params?: unknown[]): Promise; } export interface PostgresThreadExecutionCoordinatorOptions { client: PgClientLike; tableName?: string; autoMigrate?: boolean; now?: () => number; } export interface PostgresThreadExecutionLease { renew(): Promise; release(): Promise; } export declare class PostgresThreadExecutionCoordinator { private readonly client; private readonly table; private readonly ready; private readonly now; constructor(options: PostgresThreadExecutionCoordinatorOptions); acquire(options: { tenantId: string; threadId: string; ownerId: string; ttlMs: number; }): Promise; private migrate; } export {};