import { ISubscriptionRepository } from '../interfaces/subscription-repository'; import { Subscription } from '../models/subscription'; import * as mongodb from 'mongodb'; export declare class MongoSubscriptionRepository implements ISubscriptionRepository { protected host: string; protected static client: mongodb.MongoClient; protected static database: mongodb.Collection; constructor(host: string); close(): void; delete(key: string, channel: string, endpoint: string): Promise; find(key: string, channel: string, endpoint: string): Promise; findAll(key: string, channel: string): Promise>; findChannels(key: string): Promise>; insert(key: string, channel: string, subscription: Subscription): Promise; wait(): Promise; protected initialize(): Promise; }