/**
 * AbortSignal wiring helpers shared by the transports.
 * @module
 */
/// <amd-module name="file:///home/runner/work/hyperliquid/hyperliquid/src/transport/_abort.ts" />
/** Aborts `target` with a `TimeoutError` after `ms`; `cancel` clears the timer, `reason` identifies the abort. */
export declare function scheduleTimeout(target: AbortController, ms: number | null): {
    reason: Error;
    cancel: () => void;
};
/** Resolves or rejects with `promise`, or rejects with `signal.reason` once `signal` aborts, whichever comes first. */
export declare function race<T>(promise: Promise<T>, signal: AbortSignal | undefined): Promise<T>;
/** Relays abort events from `sources` into `target` and returns a detach function. */
export declare function relay(sources: (AbortSignal | null | undefined)[], target: AbortController): () => void;
