import type { IDataObject, IHttpRequestOptions, INode } from 'n8n-workflow'; export declare function getBotApiBaseUrl(botToken: string): string; export declare function deriveSecretToken(botToken: string): string; export type ZaloBotCredentials = { botToken: string; webhookSecretToken?: string; }; /** Dùng Secret Token từ credential (Zalo Bot Manager) hoặc tự sinh từ Bot Token. */ export declare function resolveWebhookSecret(credentials: ZaloBotCredentials): string; export declare function normalizeWebhookUrl(url: string | null | undefined): string; export declare function getIncomingWebhookSecret(headers: Record | null | undefined): string; export declare function parseZaloWebhookBody(body: unknown): IDataObject; /** Lấy payload sự kiện từ body Zalo (hỗ trợ cả bọc { ok, result }). */ export declare function extractZaloWebhookPayload(body: IDataObject): IDataObject; export declare function assertBotOk(response: IDataObject, node: INode): void; type BotApiContext = { getNode(): INode; helpers: { httpRequest: (requestOptions: IHttpRequestOptions) => Promise; }; }; export declare function callBotApi(context: BotApiContext, botToken: string, method: string, body?: Record): Promise; export {};