/** * @module SharedLock */ import { type IReadableContext } from "../../../../execution-context/contracts/_module.js"; import { type ISharedLockAdapter, type ISharedLockAdapterState, type SharedLockAcquireSettings } from "../../../../shared-lock/contracts/_module.js"; import { type TimeSpan } from "../../../../time-span/implementations/_module.js"; /** * The `NoOpSharedLockAdapter` will do nothing and is used for easily mocking {@link ISharedLockFactory | `ISharedLockFactory`} for testing. * * IMPORT_PATH: `"@daiso-tech/core/shared-lock/no-op-shared-lock-adapter"` * @group Adapters */ export declare class NoOpSharedLockAdapter implements ISharedLockAdapter { acquireWriter(_key: string, _lockId: string, _ttl: TimeSpan | null, _context: IReadableContext): Promise; releaseWriter(_key: string, _lockId: string, _context: IReadableContext): Promise; forceReleaseWriter(_key: string, _context: IReadableContext): Promise; refreshWriter(_key: string, _lockId: string, _ttl: TimeSpan, _context: IReadableContext): Promise; acquireReader(_settings: SharedLockAcquireSettings): Promise; releaseReader(_key: string, _lockId: string, _context: IReadableContext): Promise; forceReleaseAllReaders(_key: string, _context: IReadableContext): Promise; refreshReader(_key: string, _lockId: string, _ttl: TimeSpan, _context: IReadableContext): Promise; forceRelease(_key: string, _context: IReadableContext): Promise; getState(_key: string, _context: IReadableContext): Promise; }