import { Snapshot, ID } from './types';
/** A save place to store your snapshots. */
export declare class Vault {
    private _vault;
    private _vaultSize;
    /** Get a Snapshot by its ID. */
    getById(id: ID): Snapshot;
    /** Clear this Vault */
    clear(): void;
    /** Get the latest snapshot */
    get(): Snapshot | undefined;
    /** Get the two snapshots around a specific time */
    get(time: number): {
        older: Snapshot;
        newer: Snapshot;
    } | undefined;
    /** Get the closest snapshot to e specific time */
    get(time: number, closest: boolean): Snapshot | undefined;
    /** Add a snapshot to the vault. */
    add(snapshot: Snapshot): void;
    /** Get the current capacity (size) of the vault. */
    get size(): number;
    /** Set the max capacity (size) of the vault. */
    setMaxSize(size: number): void;
    /** Get the max capacity (size) of the vault. */
    getMaxSize(): number;
}
//# sourceMappingURL=vault.d.ts.map