import { Hex, hexInput, hexValue } from '@erebos/hex'; import { StreamRPC } from '@erebos/rpc-stream'; import { Observable } from 'rxjs'; export declare const EMPTY_ADDRESS: hexValue; export interface PssEvent { key?: hexValue; msg: Hex; } export declare class Pss { protected rpc: StreamRPC; constructor(rpc: StreamRPC); baseAddr(): Promise; getPublicKey(): Promise; sendAsym(key: hexValue, topic: hexValue, message: Hex | hexInput): Promise; sendSym(keyID: string, topic: hexValue, message: Hex | hexInput): Promise; sendRaw(address: hexValue, topic: hexValue, message: Hex | hexInput): Promise; setPeerPublicKey(key: hexValue, topic: hexValue, address: hexValue): Promise; setSymmetricKey(key: hexValue, topic: hexValue, address: hexValue, useForDecryption?: boolean): Promise; stringToTopic(str: string): Promise; subscribeTopic(topic: hexValue, handleRawMessages?: boolean): Promise; createSubscription(subscription: hexValue): Observable; createTopicSubscription(topic: hexValue, handleRawMessages?: boolean): Promise>; }