import type { PluginListenerHandle } from '@capacitor/core'; export declare type ProtocolType = 'tcp' | 'udp'; export interface NetWorkPlugin { connect(options: { type: ProtocolType; ip: string; port: number; }): Promise; disconnect(): Promise; send(options: { data: string; ip?: string; udpType?: 'broadcast' | 'multicast' | 'singelcast'; }): Promise; getIpInfo(): Promise<{ ip: string; ipv4: string; ipv6: string; }>; addListener(eventName: 'data', listenerFunc: (data: T) => void): Promise; addListener(eventName: 'disconnected', listenerFunc: (data: { type: ProtocolType; port: number; ip?: string; }) => void): Promise; addListener(eventName: 'connected', listenerFunc: (data: { type: ProtocolType; port: number; ip?: string; }) => void): Promise; }