/// import { EventEmitter } from "events"; import { Document, Patch } from "./types"; export declare class SortedPatchList extends EventEmitter { private from_str; private patches; private times; private versions_cache; private cache; private all_snapshot_times; constructor(from_str: any); close(): void; next_available_time(time: Date | number, m?: number, n?: number): Date; add(patches: Patch[]): void; private newest_snapshot_time; value(time?: Date, force?: boolean, without_times?: Date[]): Document; value_no_cache(time?: Date, snapshots?: boolean): Document; validate_snapshots(): void; user_id(time: any): number; time_sent(time: any): Date | undefined; patch(time: any): Patch; versions(): Date[]; show_history({ milliseconds, trunc, log, }?: { milliseconds?: boolean; trunc?: number; log?: Function; }): void; time_of_unmade_periodic_snapshot(interval: number, max_size: number): Date | undefined; snapshot_times(): Date[]; newest_patch_time(): Date | undefined; count(): number; export(): Patch[]; }