import type { TurboModule } from 'react-native'; export interface Device { deviceAddress: string; deviceName: string; isGroupOwner: boolean; primaryDeviceType: string | null; secondaryDeviceType: string | null; status: number; } export interface ConnectionArgs { deviceAddress: string; groupOwnerIntent?: number; } export interface GroupInfo { interface: string; networkName: string; passphrase: string; clientList: Device[]; owner: { deviceAddress: string; deviceName: string; primaryDeviceType: string | null; secondaryDeviceType: string | null; status: number; } | null; } export interface WifiP2pInfo { groupOwnerAddress: { hostAddress: string; isLoopbackAddress: boolean; } | null; groupFormed: boolean; isGroupOwner: boolean; } export interface FileTransferResult { file: string; time: number; } export interface MessageTransferResult { message: string; time: number; } export interface Message { message: T; fromAddress: string; fromHostName: string; fromPort: number; localAddress: string; localPort: number; receivedAt: number; messageSize: number; threadName: string; connectionId: string; } export interface Config { notificationTitle: string; sendingMessageText: string; channelName: string; } export interface Spec extends TurboModule { init(): Promise; stop(): Promise; setConfig(config: Config): void; getConfig(): Promise; discoverPeers(): Promise; stopPeerDiscovery(): Promise; getAvailablePeersList(): Promise<{ devices: Device[]; }>; connectWithConfig(config: ConnectionArgs): Promise; cancelConnect(): Promise; createGroup(): Promise; removeGroup(): Promise; getConnectionInfo(): Promise; getGroupInfo(): Promise; sendFile(path: string): Promise; sendFileTo(path: string, address: string): Promise; receiveFile(folder: string, fileName: string, forceToScanGallery: boolean): Promise; sendMessage(message: string): Promise; sendMessageTo(message: string, address: string): Promise; startReceivingMessage(props?: { meta?: boolean; }): Promise; stopReceivingMessage(): void; } declare const _default: Spec; export default _default; //# sourceMappingURL=NativeRnWifiP2P.d.ts.map