|  |  | @ -7,15 +7,16 @@ export type CipherTextObject = { | 
			
		
	
		
		
			
				
					
					|  |  |  |   body: BinaryString; |  |  |  |   body: BinaryString; | 
			
		
	
		
		
			
				
					
					|  |  |  |   registrationId?: number; |  |  |  |   registrationId?: number; | 
			
		
	
		
		
			
				
					
					|  |  |  | }; |  |  |  | }; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | export interface SignalProtocolAddressConstructor { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |   new (hexEncodedPublicKey: string, deviceId: number): SignalProtocolAddress; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |   fromString(encodedAddress: string): SignalProtocolAddress; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | } | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | export declare class SignalProtocolAddress { |  |  |  | export interface SignalProtocolAddress { | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |   constructor(hexEncodedPublicKey: string, deviceId: number); |  |  |  |   getName(): string; | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |   // tslint:disable-next-line: function-name
 |  |  |  |   getDeviceId(): number; | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |   public static fromString(encodedAddress: string): SignalProtocolAddress; |  |  |  |   toString(): string; | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |   public getName(): string; |  |  |  |   equals(other: SignalProtocolAddress): boolean; | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |   public getDeviceId(): number; |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |   public toString(): string; |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |   public equals(other: SignalProtocolAddress): boolean; |  |  |  |  | 
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  | } |  |  |  | } | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | export type KeyPair = { |  |  |  | export type KeyPair = { | 
			
		
	
	
		
		
			
				
					|  |  | @ -99,29 +100,30 @@ export interface KeyHelperInterface { | 
			
		
	
		
		
			
				
					
					|  |  |  |   }>; |  |  |  |   }>; | 
			
		
	
		
		
			
				
					
					|  |  |  | } |  |  |  | } | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | export declare class SessionCipher { |  |  |  | export type SessionCipherConstructor = new ( | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |   constructor(storage: any, remoteAddress: SignalProtocolAddress); |  |  |  |   storage: any, | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |   remoteAddress: SignalProtocolAddress | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | ) => SessionCipher; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | export interface SessionCipher { | 
			
		
	
		
		
			
				
					
					|  |  |  |   /** |  |  |  |   /** | 
			
		
	
		
		
			
				
					
					|  |  |  |    * @returns The envelope type, registration id and binary encoded encrypted body. |  |  |  |    * @returns The envelope type, registration id and binary encoded encrypted body. | 
			
		
	
		
		
			
				
					
					|  |  |  |    */ |  |  |  |    */ | 
			
		
	
		
		
			
				
					
					|  |  |  |   public encrypt(buffer: ArrayBuffer | Uint8Array): Promise<CipherTextObject>; |  |  |  |   encrypt(buffer: ArrayBuffer | Uint8Array): Promise<CipherTextObject>; | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |   public decryptPreKeyWhisperMessage( |  |  |  |   decryptPreKeyWhisperMessage( | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |     buffer: ArrayBuffer | Uint8Array |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |   ): Promise<ArrayBuffer>; |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |   public decryptWhisperMessage( |  |  |  |  | 
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |     buffer: ArrayBuffer | Uint8Array |  |  |  |     buffer: ArrayBuffer | Uint8Array | 
			
		
	
		
		
			
				
					
					|  |  |  |   ): Promise<ArrayBuffer>; |  |  |  |   ): Promise<ArrayBuffer>; | 
			
		
	
		
		
			
				
					
					|  |  |  |   public getRecord(encodedNumber: string): Promise<any | undefined>; |  |  |  |   decryptWhisperMessage(buffer: ArrayBuffer | Uint8Array): Promise<ArrayBuffer>; | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |   public getRemoteRegistrationId(): Promise<number>; |  |  |  |   getRecord(encodedNumber: string): Promise<any | undefined>; | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |   public hasOpenSession(): Promise<boolean>; |  |  |  |   getRemoteRegistrationId(): Promise<number>; | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |   public closeOpenSessionForDevice(): Promise<void>; |  |  |  |   hasOpenSession(): Promise<boolean>; | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |   public deleteAllSessionsForDevice(): Promise<void>; |  |  |  |   closeOpenSessionForDevice(): Promise<void>; | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |   deleteAllSessionsForDevice(): Promise<void>; | 
			
		
	
		
		
			
				
					
					|  |  |  | } |  |  |  | } | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | export interface LibsignalProtocol { |  |  |  | export interface LibsignalProtocol { | 
			
		
	
		
		
			
				
					
					|  |  |  |   SignalProtocolAddress: typeof SignalProtocolAddress; |  |  |  |   SignalProtocolAddress: SignalProtocolAddressConstructor; | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |   Curve: CurveInterface; |  |  |  |   Curve: CurveInterface; | 
			
		
	
		
		
			
				
					
					|  |  |  |   crypto: CryptoInterface; |  |  |  |   crypto: CryptoInterface; | 
			
		
	
		
		
			
				
					
					|  |  |  |   KeyHelper: KeyHelperInterface; |  |  |  |   KeyHelper: KeyHelperInterface; | 
			
		
	
		
		
			
				
					
					|  |  |  |   SessionCipher: typeof SessionCipher; |  |  |  |   SessionCipher: SessionCipherConstructor; | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | } |  |  |  | } | 
			
		
	
	
		
		
			
				
					|  |  | 
 |