import { TokioAsyncContext } from '../net.js'; import * as Native from '../Native.js'; import { FakeChatRemoteEnd } from '../Native.js'; export declare class InternalRequest implements Native.Wrapper { readonly _nativeHandle: Native.HttpRequest; readonly requestId: bigint; constructor([nativeHandle, requestId]: [Native.HttpRequest, bigint]); get verb(): string; get path(): string; get headers(): Map; get body(): Uint8Array; static getNextGrpcMessage(name: string, body: Uint8Array): [Uint8Array, unknown]; getSingleGrpcMessage(name: string): unknown; } export type ServerResponse = { id: bigint; status: number; message?: string; headers?: string[]; body?: Uint8Array; }; export declare class FakeChatRemote { private asyncContext; readonly _nativeHandle: FakeChatRemoteEnd; static FAKE_AUTH_CONNECT_SELF_UUID: string; constructor(asyncContext: TokioAsyncContext, _nativeHandle: FakeChatRemoteEnd); receiveIncomingRequest(): Promise; assertReceiveIncomingRequest(): Promise; sendReplyTo(request: InternalRequest, response: Omit): void; sendServerResponse(response: ServerResponse): void; sendRawServerResponse(bytes: Uint8Array): void; sendRawServerRequest(bytes: Uint8Array): void; injectConnectionInterrupted(): void; receiveIncomingGrpcRequest(): Promise; assertReceiveIncomingGrpcRequest(): Promise; sendRawGrpcReplyTo(request: InternalRequest, response: Uint8Array): Promise; static encodeSingleGrpcMessage(name: string, json: Record): Uint8Array; sendGrpcReplyTo(request: InternalRequest, name: string, response: Record): Promise; }