import type { Transport } from '../clients/transports/createTransport.js'; import type { FallbackTransport } from '../clients/transports/fallback.js'; import type { Some } from './utils.js'; export type GetTransportConfig = ReturnType['config']; export type GetPollOptions = (HasTransportType extends true ? { batch?: undefined; /** * Whether or not the WebSocket Transport should poll the JSON-RPC, rather than using `eth_subscribe`. * @default false */ poll?: false | undefined; pollingInterval?: undefined; } : never) | { poll?: true | undefined; /** * Whether or not the transaction hashes should be batched on each invocation. * @default true */ batch?: boolean | undefined; /** * Polling frequency (in ms). Defaults to Client's pollingInterval config. * @default client.pollingInterval */ pollingInterval?: number | undefined; }; export type HasTransportType = GetTransportConfig['type'] extends type ? true : transport extends FallbackTransport ? Some<{ [key in keyof transports]: GetTransportConfig['type']; }, type> : false; //# sourceMappingURL=transport.d.ts.map