import { Subscription } from '../models/subscription'; export interface ISubscriptionRepository { 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; }