import type { Clock } from '@zukhruf/async'; import { FencingToken } from './fencing-token.ts'; import type { TokenSource } from './token-source.ts'; /** * Keeps one counter file per key in `directory`, so tokens keep growing across * process restarts and can fence durable resources. Relies on the caller holding * the key's lock: read, increment and replace are not atomic on their own. */ export declare class FileTokenSource implements TokenSource { #private; /** `clock` runs the waits of the write of a counter: `globalThis` in production. */ constructor(directory: string, { clock }: { clock: Clock; }); next(key: string): Promise; } //# sourceMappingURL=file-token-source.d.ts.map