import type { Transport } from '@ya-modbus/driver-types'; import type ModbusRTU from 'modbus-serial'; import { type RetryLogger } from './retry.js'; /** * Create a Transport implementation from a ModbusRTU client * * This factory wraps all modbus-serial client methods with retry logic * and converts them to the Transport interface expected by device drivers. * * @param client - Configured ModbusRTU client instance * @param maxRetries - Maximum retry attempts (default: 3, use 1 for discovery to disable retries) * @param logger - Optional callback to log retry attempts for debugging * @returns Transport implementation */ export declare function createModbusTransport(client: ModbusRTU, maxRetries?: number, logger?: RetryLogger): Transport; //# sourceMappingURL=create-modbus-transport.d.ts.map