UNPKG

@gguf/claw

Version:

Multi-channel AI gateway with extensible messaging integrations

16 lines (15 loc) 693 B
import type { IncomingMessage, ServerResponse } from "node:http"; import type { WebhookRequestBody } from "@line/bot-sdk"; import type { RuntimeEnv } from "../runtime.js"; export declare function readLineWebhookRequestBody(req: IncomingMessage, maxBytes?: number): Promise<string>; type ReadBodyFn = (req: IncomingMessage, maxBytes: number) => Promise<string>; export declare function createLineNodeWebhookHandler(params: { channelSecret: string; bot: { handleWebhook: (body: WebhookRequestBody) => Promise<void>; }; runtime: RuntimeEnv; readBody?: ReadBodyFn; maxBodyBytes?: number; }): (req: IncomingMessage, res: ServerResponse) => Promise<void>; export {};