import { TrustlessGateway } from './trustless-gateway.ts'; import type { TrustlessGatewayGetBlockProgressEvents } from './index.ts'; import type { TransformRequestInit } from './trustless-gateway.ts'; import type { Routing } from '@helia/interface'; import type { ComponentLogger, Logger, AbortOptions } from '@libp2p/interface'; import type { Multiaddr } from '@multiformats/multiaddr'; import type { CID } from 'multiformats/cid'; import type { ProgressOptions } from 'progress-events'; export declare function filterNonHTTPMultiaddrs(multiaddrs: Multiaddr[], allowInsecure: boolean, allowLocal: boolean): Multiaddr[]; export interface FindHttpGatewayProvidersOptions extends AbortOptions, ProgressOptions { transformRequestInit?: TransformRequestInit; } export declare function findHttpGatewayProviders(cid: CID, routing: Routing, logger: ComponentLogger, allowInsecure: boolean, allowLocal: boolean, options?: FindHttpGatewayProvidersOptions): AsyncGenerator; interface LimitedResponseOptions { signal?: AbortSignal; log?: Logger; } /** * A function that handles ensuring the content-length header and the response body is less than a given byte limit. * * If the response contains a content-length header greater than the limit or the actual bytes returned are greater than * the limit, an error is thrown. */ export declare function limitedResponse(response: Response, byteLimit: number, options?: LimitedResponseOptions): Promise; export {}; //# sourceMappingURL=utils.d.ts.map