import { z } from 'zod'; import type { NonRetryableStepErrorPayload } from '@sapiom/agent'; export { MAX_SHARED_SNAPSHOT_BYTES } from '@sapiom/agent'; export declare const wireDirectiveSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ kind: z.ZodLiteral<"continue">; stepName: z.ZodString; input: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"retry">; delayMs: z.ZodOptional; reason: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"pause_until_signal">; signal: z.ZodObject<{ name: z.ZodString; correlationId: z.ZodOptional; }, z.core.$strip>; timeoutMs: z.ZodOptional; resumeStep: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"terminate">; reason: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"fail">; reason: z.ZodOptional; }, z.core.$strip>], "kind">; export declare const STEP_COMPLETION_OUTCOME: { readonly RESULT: "result"; readonly THREW: "threw"; }; export declare const stepCompletionErrorSchema: z.ZodUnion, z.ZodTransform<{ name: "CtxSharedSizeLimitExceededError"; message: string; code: "CTX_SHARED_SIZE_LIMIT_EXCEEDED"; version: number; actualBytes: number; limitBytes: number; stepName: string; phase: string; retryable: false; stack?: string | undefined; } | { name: "StepInputValidationError"; message: string; code: "STEP_INPUT_VALIDATION_FAILED"; version: number; stepName: string; retryable: false; stack?: string | undefined; } | { name: "CtxSharedSerializationError"; message: string; code: "CTX_SHARED_SERIALIZATION_FAILED"; version: number; stepName: string; phase: string; retryable: false; stack?: string | undefined; }, NonRetryableStepErrorPayload>>, z.ZodObject<{ name: z.ZodString; message: z.ZodString; stack: z.ZodOptional; }, z.core.$strip>]>; export declare const stepCompletionPayloadSchema: z.ZodObject<{ protocol: z.ZodLiteral<1>; correlationId: z.ZodString; outcome: z.ZodEnum<{ result: "result"; threw: "threw"; }>; result: z.ZodOptional; directive: z.ZodDiscriminatedUnion<[z.ZodObject<{ kind: z.ZodLiteral<"continue">; stepName: z.ZodString; input: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"retry">; delayMs: z.ZodOptional; reason: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"pause_until_signal">; signal: z.ZodObject<{ name: z.ZodString; correlationId: z.ZodOptional; }, z.core.$strip>; timeoutMs: z.ZodOptional; resumeStep: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"terminate">; reason: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"fail">; reason: z.ZodOptional; }, z.core.$strip>], "kind">; }, z.core.$strip>>; error: z.ZodOptional, z.ZodTransform<{ name: "CtxSharedSizeLimitExceededError"; message: string; code: "CTX_SHARED_SIZE_LIMIT_EXCEEDED"; version: number; actualBytes: number; limitBytes: number; stepName: string; phase: string; retryable: false; stack?: string | undefined; } | { name: "StepInputValidationError"; message: string; code: "STEP_INPUT_VALIDATION_FAILED"; version: number; stepName: string; retryable: false; stack?: string | undefined; } | { name: "CtxSharedSerializationError"; message: string; code: "CTX_SHARED_SERIALIZATION_FAILED"; version: number; stepName: string; phase: string; retryable: false; stack?: string | undefined; }, NonRetryableStepErrorPayload>>, z.ZodObject<{ name: z.ZodString; message: z.ZodString; stack: z.ZodOptional; }, z.core.$strip>]>>; shared: z.ZodOptional>; logs: z.ZodOptional>>; metrics: z.ZodOptional>; }, z.core.$strip>; export type StepCompletionPayload = z.infer; export type StepCompletionError = z.infer; export declare function serializeStepCompletionError(error: unknown): StepCompletionError; export declare const MAX_LOGS_BYTES: number;