import { MapperFactory } from './mappers'; import { Disconnect, Exchange, FilterForExchange } from './types'; export declare function stream({ exchange, filters, timeoutIntervalMS, withDisconnects, onError }: StreamOptions): AsyncIterableIterator; export type StreamOptions = { exchange: T; filters: FilterForExchange[T][]; timeoutIntervalMS?: number; withDisconnects?: U; onError?: (error: Error) => void; }; export type StreamNormalizedOptions = { exchange: T; symbols?: string[]; timeoutIntervalMS?: number; withDisconnectMessages?: U; onError?: (error: Error) => void; }; export declare function streamNormalized[], Z extends boolean = false>({ exchange, symbols, timeoutIntervalMS, withDisconnectMessages, onError }: StreamNormalizedOptions, ...normalizers: U): AsyncIterableIterator[] ? X | Disconnect : never : U extends MapperFactory[] ? X : never>; //# sourceMappingURL=stream.d.ts.map