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