import type { IncomingMessage, ServerResponse } from 'node:http';
import { type ConnectorDefinition } from '../services/connector-store.js';
import { type TriggerApiDeps } from './trigger-api.js';
export type WebhookRouteDeps = TriggerApiDeps & {
    createLifecycleGroup?: (connector: ConnectorDefinition, args: {
        dedupKey: string;
    }) => Promise<{
        chatId: string;
        creatorLarkAppId?: string;
    }>;
};
export declare function verifyWebhookSignature(secret: string, ts: string, rawBody: Buffer, sig: string): boolean;
export declare function verifyWebhookToken(secret: string, presented: string): boolean;
export declare function handleWebhookRoute(req: IncomingMessage, res: ServerResponse, url: URL, deps: WebhookRouteDeps): Promise<boolean>;
//# sourceMappingURL=webhook-routes.d.ts.map