export interface DatabaseState {
    engine: "postgres" | "redis" | "object_store";
    port: number;
    host: string;
    user: string;
    password: string;
    dbName: string;
    url: string;
    endpoint?: string;
    accessKey?: string;
    secretKey?: string;
}
export interface ServiceState {
    port?: number;
    pid: number;
}
export interface InstanceState {
    version: 1;
    owner: {
        pid: number;
        command: "dev" | "exec";
        startedAt: string;
    };
    databases: Record<string, DatabaseState>;
    services: Record<string, ServiceState>;
}
export declare class InstanceStateManager {
    private stateDir;
    private statePath;
    private lockPath;
    private ownsInstances;
    constructor(projectRoot: string);
    private ensureStateDir;
    private isProcessRunning;
    private acquireLock;
    getExistingInstances(): Promise<InstanceState | null>;
    cleanStaleState(): Promise<boolean>;
    claimOwnership(command: "dev" | "exec"): Promise<void>;
    registerDatabase(name: string, info: DatabaseState): Promise<void>;
    registerService(name: string, info: ServiceState): Promise<void>;
    releaseOwnership(): Promise<void>;
    private readState;
    private writeStateAtomic;
}
//# sourceMappingURL=instance-state.d.ts.map