/** * Simplified Connection API for Thermal Printers * Uses native wrapper for all native calls */ import { EmitterSubscription } from 'react-native'; import { ConnectionEventPayload, ConnectionEventType, TestConnectionResult } from './types'; /** * Test connection to a printer * @param address Printer address in format: "ble:MAC", "bt:MAC", or "lan:IP:PORT" * @returns Test result with device info */ export declare function testConnection(address: string): Promise; /** * Disconnect from printer * @param address Optional printer address (disconnects all if not provided) */ export declare function disconnect(address?: string): Promise; /** * Disconnect all printers */ export declare function disconnectAll(): Promise; /** * Add event listener for connection events with type safety */ export declare function addConnectionEventListener(event: T, listener: (data: ConnectionEventPayload[T]) => void): EmitterSubscription; /** * Remove event listener */ export declare function removeConnectionEventListener(subscription: EmitterSubscription): void; //# sourceMappingURL=connection.d.ts.map