import type IOReader from "../../io/IOReader.ts"; import type IOWriter from "../../io/IOWriter.ts"; export declare class TextMessageRequest { method: string; uri: string; protocol: string; headers: Record; content: string; constructor(method: string, uri: string, protocol: string, headers?: Record, content?: string); setHeader(key: string, value: string): void; encode(): string; } export declare class TextMessageResponse { protocol: string; statusCode: number; statusText: string; headers: Record; content: string; constructor(protocol: string, statusCode: number, statusText: string, headers: Record, content: string); } export declare abstract class TextMessageSession { protected ioReader: IOReader; protected ioWriter: IOWriter; constructor(ioReader: IOReader, ioWriter: IOWriter); protected readResponse(): Promise; request(request: TextMessageRequest): Promise; notify(request: TextMessageRequest): Promise; }