@gguf/claw
Version:
Multi-channel AI gateway with extensible messaging integrations
13 lines (12 loc) • 640 B
TypeScript
import type { IncomingMessage, ServerResponse } from "node:http";
export type SlackHttpRequestHandler = (req: IncomingMessage, res: ServerResponse) => Promise<void> | void;
type RegisterSlackHttpHandlerArgs = {
path?: string | null;
handler: SlackHttpRequestHandler;
log?: (message: string) => void;
accountId?: string;
};
export declare function normalizeSlackWebhookPath(path?: string | null): string;
export declare function registerSlackHttpHandler(params: RegisterSlackHttpHandlerArgs): () => void;
export declare function handleSlackHttpRequest(req: IncomingMessage, res: ServerResponse): Promise<boolean>;
export {};