/**
 * Runs `write` once every earlier write of this realm to `path` has finished, so no write waits on a lock another
 * write of the same realm holds.
 */
export declare function inTrustStoreWriteTurn(path: string, write: () => Promise<void>): Promise<void>;
/**
 * Records that a write of this realm holds the store lock for `path` until the returned release runs. Call it in the
 * same synchronous step that acquired the lock: a reader of this realm then never meets the lock without the record.
 */
export declare function holdTrustStoreLockInRealm(path: string): () => void;
/**
 * Whether a write of this realm holds the store lock for `path` across its awaits. A synchronous reader of the same
 * realm must not wait for that lock: its wait blocks the event loop the writer needs to finish. It reads without the
 * lock instead, which is safe because the writer replaces `trust.json` in one synchronous call. Engine copies that
 * predate this registry do not consult it: their synchronous reads and writes wait out the lock's 200 ms budget
 * while such a write holds it, and fail with `ELOCKED` if it is still held then.
 */
export declare function trustStoreLockHeldInRealm(path: string): boolean;
//# sourceMappingURL=trust-store-writers.d.ts.map