import type { PostgresAdapter, PostgresConfig } from "../postgres/index.js"; import type { PathwayCoordinator } from "./types.js"; /** * PostgreSQL-backed implementation of PathwayCoordinator. * Uses two tables: * - `pathway_leases`: distributed locks for leader election * - `pathway_instances`: instance registration and heartbeating */ export declare class PostgresPathwayCoordinator implements PathwayCoordinator { private adapter; private initialized; private readonly leasesTable; private readonly instancesTable; constructor(adapter: PostgresAdapter, options?: { leasesTable?: string; instancesTable?: string; }); private ensureInitialized; acquireLease(instanceId: string, key: string, ttlMs: number): Promise; renewLease(instanceId: string, key: string, ttlMs: number): Promise; releaseLease(instanceId: string, key: string): Promise; register(instanceId: string, address: string): Promise; heartbeat(instanceId: string): Promise; unregister(instanceId: string): Promise; getInstances(staleThresholdMs: number): Promise>; } /** * Factory function to create a PostgresPathwayCoordinator */ export declare function createPostgresPathwayCoordinator(config: PostgresConfig, options?: { leasesTable?: string; instancesTable?: string; }): Promise; //# sourceMappingURL=postgres-coordinator.d.ts.map