import { z } from "zod";

//#region src/domains/run/workflow/functions/webhookDelivery.d.ts
declare const WebhookDeliveryPayloadSchema: z.ZodObject<{
  destinationUrl: z.ZodString;
  tenantId: z.ZodString;
  projectId: z.ZodString;
  agentId: z.ZodString;
  webhookDestinationId: z.ZodString;
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
  headers: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
}, z.core.$strip>;
type WebhookDeliveryPayload = z.infer<typeof WebhookDeliveryPayloadSchema>;
declare function _webhookDeliveryWorkflow(deliveryPayload: WebhookDeliveryPayload): Promise<{
  status: string;
  attempt: number;
  statusCode: number | undefined;
  error?: undefined;
} | {
  status: string;
  attempt: number;
  statusCode: number | undefined;
  error: string | undefined;
} | {
  status: string;
  attempt: number;
  error: string | undefined;
  statusCode?: undefined;
}>;
declare const webhookDeliveryWorkflow: typeof _webhookDeliveryWorkflow & {
  workflowId: string;
};
//#endregion
export { WebhookDeliveryPayload, WebhookDeliveryPayloadSchema, webhookDeliveryWorkflow };