import { AbstractSession } from '@helia/utils'; import { TrustlessGateway } from './trustless-gateway.ts'; import type { CreateTrustlessGatewaySessionOptions } from './broker.ts'; import type { TrustlessGatewayGetBlockProgressEvents } from './index.ts'; import type { BlockRetrievalOptions, Routing } from '@helia/interface'; import type { ComponentLogger, PeerId, AbortOptions } from '@libp2p/interface'; import type { Multiaddr } from '@multiformats/multiaddr'; import type { CID } from 'multiformats/cid'; export interface TrustlessGatewaySessionComponents { logger: ComponentLogger; routing: Routing; } declare class TrustlessGatewaySession extends AbstractSession { readonly name = "trustless-gateway-session"; private readonly routing; private readonly allowInsecure; private readonly allowLocal; private readonly transformRequestInit?; constructor(components: TrustlessGatewaySessionComponents, init: CreateTrustlessGatewaySessionOptions); queryProvider(cid: CID, provider: TrustlessGateway, options: BlockRetrievalOptions): Promise; findNewProviders(cid: CID, options?: AbortOptions): AsyncGenerator; toFilterKey(provider: TrustlessGateway): Uint8Array | string; equals(providerA: TrustlessGateway, providerB: TrustlessGateway): boolean; convertToProvider(provider: PeerId | Multiaddr | Multiaddr[], routing: string, options?: AbortOptions): Promise; emitFoundProviderProgressEvent(cid: CID, provider: TrustlessGateway, options: BlockRetrievalOptions): void; } export declare function createTrustlessGatewaySession(components: TrustlessGatewaySessionComponents, init: CreateTrustlessGatewaySessionOptions): TrustlessGatewaySession; export {}; //# sourceMappingURL=session.d.ts.map