import { TwinMessageResult } from './types/twin.types'; import { TwinTransport } from './services/webrtc/types'; export interface TwinMessagingMethods { emit: (type: string, payload: any) => void; on: (type: string, callback: (message: any, respond?: (result: TwinMessageResult) => void) => void) => () => void; off: (type: string, callback: (message: any, respond?: (result: TwinMessageResult) => void) => void) => boolean; to: (targetTwinId: string) => { emit: { (type: string, payload: any): void; (type: string, payload: any, callback: (response: TwinMessageResult) => void): Promise; }; }; } export declare function createTwinMessaging(transport: TwinTransport, typePrefix: string): TwinMessagingMethods; //# sourceMappingURL=twin-messaging.d.ts.map