export interface SipLoginOptions { /** * By default "UDP" */ transport?: 'TLS' | 'TCP' | 'UDP'; /** * SIP domain address */ domain: string; /** * User login for authentication */ username: string; /** * User password for authentication */ password: string; } export interface SipOutgoingCallOptions { address: string; } export declare enum SipEvent { AccountStateChanged = "SIPAccountStateChanged", CallStateChanged = "SIPCallStateChanged" } export interface SipPhoneControlPlugin { /** * Initialize plugin state */ initialize(): Promise; /** * Make login to the SIP * @param options */ login(options: SipLoginOptions): Promise; /** * Logout & terminate account */ logout(): Promise; /** * Make outgoing call * @param options */ call(options: SipOutgoingCallOptions): Promise; /** * Accept incoming call */ acceptCall(): Promise; /** * Terminate current call */ hangUp(): Promise; }