import { ErrorType, type ErrorResult, type PromiseResult } from '../ErrorResult.js'; import type { AdvisoryLockOptions, Component, Entity } from '../Types.js'; import type { DossierClient } from './DossierClient.js'; interface AdvisoryLockHelperOptions extends AdvisoryLockOptions { acquireInterval: number; renewInterval: number; } type AdvisoryLockHelperStatus = { active: true; renewError: null; } | { active: false; renewError: ErrorResult; }; export declare function withAdvisoryLock(client: DossierClient, Component>, name: string, options: AdvisoryLockHelperOptions, callback: (status: AdvisoryLockHelperStatus) => PromiseResult): PromiseResult; export {};