ribbit-wallet-connect
Version:
Next-generation multi-chain wallet and payments app that makes crypto simple, secure, and usable in daily life.
9 lines (8 loc) • 400 B
TypeScript
import type { Transport } from '../core/types';
export declare class AppTransport implements Transport {
listen(): void;
sendMessage<T = any>(type: string, payload?: any): Promise<T>;
registerHandler(event: string, handler: (...args: any[]) => void): void;
on(event: string, handler: (...args: any[]) => void): void;
off(event: string, handler: (...args: any[]) => void): void;
}