import type { IncomingMessage, ServerResponse } from "node:http"; import type { MessageDebugEntry } from "../gateway/message-debug-types.js"; import type { ControlAuth } from "./auth.js"; export interface ControlMessageDebugHttpService { history(): Promise<{ gatewayInstanceId: string; entries: MessageDebugEntry[]; }>; clear(input: unknown): Promise<{ gatewayInstanceId: string; clearedCount: number; clearedThroughSeq: number; }>; } /** 管理宿主拥有流的生命周期;设备撤销和网关停止均不留下后台轮询。 */ export declare class ControlMessageDebugHttp { private readonly service; private readonly auth?; private readonly streams; private closed; constructor(service: ControlMessageDebugHttpService | undefined, auth?: ControlAuth); close(): void; handle(request: IncomingMessage, response: ServerResponse, pathname: string, local: boolean): Promise; private stream; } //# sourceMappingURL=message-debug-http.d.ts.map