import type { IncomingMessage, ServerResponse } from "node:http"; import type { WebhookRequestBody } from "@line/bot-sdk"; import { type RuntimeEnv } from "agdi/plugin-sdk/runtime"; 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 {};