import type { LogContextGetter } from '@nangohq/logs';
import type { Config as ProviderConfig } from './../../../models/Provider.js';
import type { InternalNango } from './internal-nango.js';
export type WebhookHandler = (internalNango: InternalNango, integration: ProviderConfig, headers: Record<string, any>, body: any, rawBody: string, logContextGetter: LogContextGetter) => Promise<WebhookResponse>;
export type WebhookResponse = {
    acknowledgementResponse?: unknown;
    parsedBody?: unknown;
    connectionIds?: string[] | undefined;
} | undefined;
export type WebhookHandlersMap = Record<string, WebhookHandler>;
