import { type ApiRequest, ApiResponse } from '../../request-response';
import { type OnPublish, type WebhookResponseBody } from './types';
type WebhookParams = {
    apiKey: string;
    events?: {
        onPublish?: OnPublish;
    };
    revalidate: () => void;
};
export declare function webhookHandler(req: ApiRequest, { apiKey, events, revalidate }: WebhookParams): Promise<ApiResponse<WebhookResponseBody>>;
export {};
//# sourceMappingURL=index.d.ts.map