/*! * name: async-primitives * version: 1.7.0 * description: A collection of primitive functions for asynchronous operations * author: Kouji Matsui (@kekyo@mi.kekyo.net) * license: MIT * repository.url: https://github.com/kekyo/async-primitives.git * git.commit.hash: 9472fbd5310b92690d84aaafb897429a04c013c5 */ import { ReaderWriterLock, ReaderWriterLockOptions } from '../types.js'; /** * Creates a new ReaderWriterLock instance for managing concurrent read and exclusive write access * @returns A new ReaderWriterLock with default write-preferring policy */ export declare function createReaderWriterLock(): ReaderWriterLock; /** * Creates a new ReaderWriterLock instance for managing concurrent read and exclusive write access * @param maxConsecutiveCalls The maximum number of consecutive calls before yielding control * @returns A new ReaderWriterLock with write-preferring policy */ export declare function createReaderWriterLock(maxConsecutiveCalls: number): ReaderWriterLock; /** * Creates a new ReaderWriterLock instance for managing concurrent read and exclusive write access * @param options Options for configuring the ReaderWriterLock * @returns A new ReaderWriterLock with specified options */ export declare function createReaderWriterLock(options: ReaderWriterLockOptions): ReaderWriterLock; //# sourceMappingURL=reader-writer-lock.d.ts.map