/** * Detect connection type from address format * @param address Device address (MAC, UUID, or IP:PORT) * @returns Connection type: 'ble', 'bt', 'lan', or null if cannot detect */ export declare function detectAddressType(address: string): 'ble' | 'bt' | 'lan' | null; /** * Helper function to build printer address * @param typeOrAddress Connection type ('ble', 'bt', 'lan') or just the address * @param identifier Optional device identifier if type is provided * @returns Formatted address string * @example * buildAddress('ble', 'XX:XX:XX:XX:XX:XX') => 'ble:XX:XX:XX:XX:XX:XX' * buildAddress('192.168.1.100:9100') => 'lan:192.168.1.100:9100' * buildAddress('XX:XX:XX:XX:XX:XX') => 'bt:XX:XX:XX:XX:XX:XX' (Android) or 'ble:XX:XX:XX:XX:XX:XX' (iOS) */ export declare function buildAddress(typeOrAddress: string, identifier?: string): string; /** * Helper function to parse printer address * @param address Printer address * @returns Object with type and identifier */ export declare function parseAddress(address: string): { type: string; identifier: string; }; //# sourceMappingURL=utils.d.ts.map