import type { StorageInterface } from "./interfaces"; /** * Storage that keeps only the latest written value, overwriting the previous one. * @category Storages */ export declare class LatestStorage implements StorageInterface { private _value?; private readonly _defaultValue?; constructor(defaultValue?: T); get size(): number; write(data: T): void; read(): T | undefined; clear(): void; reset(): void; } /** * FIFO queue storage — read() removes and returns the oldest element. Supports optional max length. * @category Storages */ export declare class QueueStorage implements StorageInterface { private _queue; private readonly _maxLength?; constructor(maxLength?: number); get size(): number; get maxLength(): number | undefined; write(data: T): void; read(): T | undefined; clear(): void; reset(): void; } /** * LIFO stack storage — read() removes and returns the most recently added element. Supports optional max length. * @category Storages */ export declare class StackStorage implements StorageInterface { private _stack; private readonly _maxLength?; constructor(maxLength?: number); get size(): number; get maxLength(): number | undefined; write(data: T): void; read(): T | undefined; clear(): void; reset(): void; } //# sourceMappingURL=storages.d.ts.map