import { type ErrorType, type PromiseResult } from '@dossierhq/core';
import type { AppDossierClient } from '../SchemaTypes.js';
export declare function withSchemaAdvisoryLock<TOk, TError extends ErrorType>(client: AppDossierClient, callback: () => PromiseResult<TOk, TError>): PromiseResult<TOk, TError | typeof ErrorType.Generic>;
