import type { Transport } from '@ya-modbus/driver-types'; import { type RTUConfig } from './rtu-transport.js'; import { type TCPConfig } from './tcp-transport.js'; export type { RTUConfig, TCPConfig }; /** * Combined transport configuration * Can be either RTU or TCP, but not both */ export type TransportConfig = RTUConfig | TCPConfig; /** * Create a transport instance based on configuration * * Detects whether to create RTU or TCP transport based on the config: * - If `port` is provided → RTU transport * - If `host` is provided → TCP transport * * @param config - Transport configuration (RTU or TCP) * @returns Transport implementation * @throws Error if config is invalid */ export declare function createTransport(config: TransportConfig): Promise; //# sourceMappingURL=factory.d.ts.map