/**
 *
 * 2key-ratchet
 * Copyright (c) 2016 Peculiar Ventures, Inc
 * Based on https://whispersystems.org/docs/specifications/doubleratchet/ and
 * https://whispersystems.org/docs/specifications/x3dh/ by Open Whisper Systems
 *
 */
import { IJsonSerializable } from "./type";
export declare class Stack<T extends IJsonSerializable> implements IJsonSerializable {
    items: T[];
    protected maxSize: number;
    get length(): number;
    get latest(): T;
    constructor(maxSize?: number);
    push(item: T): void;
    toJSON(): Promise<any[]>;
    fromJSON(obj: T[]): Promise<void>;
}
