import {Invite} from './models/Invite'; export interface InvitesAPI { setIncoming(toUid: string, invite: Invite): Promise; deleteIncoming(toUid: string, fromUid: string): Promise; existsIncoming(toUid: string, fromUid: string): Promise; addEmail(invite: Invite): Promise; deleteEmail(fromUid: string, toEmail: string): Promise; existsEmail(fromUid: string, toEmail: string): Promise; listEmail(toEmail: string): Promise; addOutgoing(invite: Invite): Promise; existsOutgoing(fromUid: string, toEmail: string): Promise; deleteOutgoing(fromUid: string, toEmail: string): Promise; accept(toUid: string, fromUid: string): Promise; waitUntilIncomingExists(toUid: string, fromUid: string): Promise; waitUntilIncomingDeleted(toUid: string, fromUid: string): Promise; waitUntilOutgoingDeleted(fromUid: string, toEmail: string): Promise; waitUntilEmailDeleted(fromUid: string, toEmail: string): Promise; }