/** * Shared test helpers for transport tests */ /** * Converts callback-style service vector methods to Promises for testing. * * This helper allows tests to work with both callback-style and Promise-style * service vector methods. It first attempts to call the method with a callback, * and falls back to Promise-style if that fails. * * @param method - The service vector method to call * @param args - Arguments to pass to the method (excluding the callback) * @returns Promise that resolves with the result or rejects with an error * * @example * ```typescript * const result = await callServiceVector( * capturedServiceVector.getHoldingRegister.bind(capturedServiceVector), * 0, * 1 * ) * ``` */ export declare const callServiceVector: (method: (...args: unknown[]) => unknown, ...args: unknown[]) => Promise; //# sourceMappingURL=test-helpers.d.ts.map