import { MessageInterface, MessageListener } from '../communication-interface/MessageInterface';
import { ObjectStore } from '../db/DBAccess';
import { DBFactory } from '../db/DBFactory';
import { MessageDto } from '../libDto/MessageDto';
export declare class DeliveryGuarantee implements MessageInterface {
    private messagetransport;
    private _initPromise;
    messageStore?: ObjectStore<MessageDto>;
    constructor(messagetransport: MessageInterface, dbFactory: DBFactory);
    /**
     * This function retransmits all unacked messages older than 60 seconds.
     */
    private _sendUnackedMessages;
    send(userId: string, payload: string): Promise<void>;
    listeners: MessageListener[];
    addMessageListener(listener: MessageListener): void;
    _messageRecieved(fromId: string, payload: string): Promise<void>;
    addContact(userId: string, keyInformation: any): Promise<string | void>;
    getKeyInformation(): Promise<any>;
    getOwnUserId(): Promise<string>;
}
//# sourceMappingURL=DeliveryGuarantee.d.ts.map