import { SetTimeoutToken } from '../../utils'; import { RpcRequest } from '../request'; import { RpcResponse } from '../response'; import { Router } from '../routes'; import { Stream } from '../stream'; /** * This class provides a way to route requests directly against the routing layer * return a response from the route * * This is useful any time you want to make requests without hitting an IO layer. */ export declare class RpcMemoryAdapter { /** * Makes a request against the routing layer with a given route, and data and returns * a response for you to accumulate the streaming results, or wait for a response */ static requestStream(router: Router, route: string, data?: unknown): MemoryResponse; } export declare class MemoryResponse extends RpcResponse { request: RpcRequest | null; routePromise: Promise | null; constructor(promise: Promise, stream: Stream, timeout: SetTimeoutToken | null); close(): void; waitForRoute(): Promise>; } //# sourceMappingURL=memoryAdapter.d.ts.map