import type { WebhookErrorPayload, WebhookSuccessPayload, WebhookTimeoutPayload } from '@remotion/serverless-client'; export type NextWebhookArgs = { testing?: boolean; extraHeaders?: Record; secret: string; onSuccess?: (payload: WebhookSuccessPayload) => void | Promise; onTimeout?: (payload: WebhookTimeoutPayload) => void | Promise; onError?: (payload: WebhookErrorPayload) => void | Promise; }; export declare const appRouterWebhook: (options: NextWebhookArgs) => (req: Request) => Promise;