import type { Database } from "bun:sqlite";
export interface ResourceLock {
    resource_type: string;
    resource_id: string;
    agent_id: string;
    lock_type: string;
    locked_at: string;
    expires_at: string;
}
export declare function acquireLock(resourceType: string, resourceId: string, agentId: string, lockType?: "advisory" | "exclusive", expiryMs?: number, db?: Database): boolean;
export declare function releaseLock(resourceType: string, resourceId: string, agentId: string, db?: Database): boolean;
export declare function checkLock(resourceType: string, resourceId: string, db?: Database): ResourceLock | null;
export declare function cleanExpiredLocks(db?: Database): number;
//# sourceMappingURL=locks.d.ts.map