UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

17 lines (16 loc) • 709 B
import type { IncomingMessage, ServerResponse } from "node:http"; import type { PluginHttpRouteRegistration, PluginRegistry } from "./registry.js"; export type PluginHttpRouteHandler = (req: IncomingMessage, res: ServerResponse) => Promise<boolean | void> | boolean | void; export declare function registerPluginHttpRoute(params: { path?: string | null; fallbackPath?: string | null; handler: PluginHttpRouteHandler; auth: PluginHttpRouteRegistration["auth"]; match?: PluginHttpRouteRegistration["match"]; replaceExisting?: boolean; pluginId?: string; source?: string; accountId?: string; log?: (message: string) => void; registry?: PluginRegistry; }): () => void;