import { z } from "zod"; export declare const surfaceOutcomeSchemaVersion: "handshake.surface-outcome.v0.1"; export declare const surfaceOutcomeKinds: readonly ["action_contract_proposed", "refused", "review_required", "proof_gap", "install_not_ready", "gateway_offline", "metadata_stale", "tools_list_changed", "replay_refused", "raw_sibling_bypass_detected", "tool_execution_error"]; export type SurfaceOutcomeKind = (typeof surfaceOutcomeKinds)[number]; export declare const nonContractSurfaceOutcomeKinds: readonly ["refused", "review_required", "proof_gap", "install_not_ready", "gateway_offline", "metadata_stale", "tools_list_changed", "replay_refused", "raw_sibling_bypass_detected", "tool_execution_error"]; export declare const surfaceOutcomePhases: readonly ["metadata", "proposal", "evidence", "readiness", "freshness", "replay", "bypass", "tool_execution"]; export declare const surfaceNextActions: readonly ["read_evidence", "recraft_request", "request_review", "reload_metadata", "fix_install", "wait_for_gateway", "stop"]; export declare const surfaceRetryability: readonly ["not_retryable", "retryable_after_recraft", "retryable_after_reload"]; export declare const surfaceCommitStates: readonly ["not_started", "protocol_recorded", "ambiguous"]; export declare const SurfaceOutcomeCommonSchema: z.ZodObject<{ schemaVersion: z.ZodLiteral<"handshake.surface-outcome.v0.1">; outcome: z.ZodEnum<{ review_required: "review_required"; proof_gap: "proof_gap"; replay_refused: "replay_refused"; refused: "refused"; action_contract_proposed: "action_contract_proposed"; raw_sibling_bypass_detected: "raw_sibling_bypass_detected"; install_not_ready: "install_not_ready"; gateway_offline: "gateway_offline"; metadata_stale: "metadata_stale"; tools_list_changed: "tools_list_changed"; tool_execution_error: "tool_execution_error"; }>; phase: z.ZodEnum<{ metadata: "metadata"; freshness: "freshness"; evidence: "evidence"; readiness: "readiness"; bypass: "bypass"; replay: "replay"; proposal: "proposal"; tool_execution: "tool_execution"; }>; authorityCreated: z.ZodLiteral; authorityCertificateMinted: z.ZodLiteral; credentialMaterialIncluded: z.ZodLiteral; gatewayCheckPerformed: z.ZodLiteral; greenlightCreated: z.ZodLiteral; mutationAttempted: z.ZodLiteral; mutationCommandIncluded: z.ZodLiteral; rawInternalRecordIncluded: z.ZodLiteral; receiptExportCreated: z.ZodLiteral; greenlightRef: z.ZodNull; gatewayCheckRef: z.ZodNull; mutationAttemptRef: z.ZodNull; proofRef: z.ZodNullable; refusalRef: z.ZodNullable; reasonCodes: z.ZodArray; nextAction: z.ZodEnum<{ read_evidence: "read_evidence"; request_review: "request_review"; recraft_request: "recraft_request"; stop: "stop"; reload_metadata: "reload_metadata"; fix_install: "fix_install"; wait_for_gateway: "wait_for_gateway"; }>; retryability: z.ZodEnum<{ not_retryable: "not_retryable"; retryable_after_recraft: "retryable_after_recraft"; retryable_after_reload: "retryable_after_reload"; }>; commitState: z.ZodEnum<{ ambiguous: "ambiguous"; not_started: "not_started"; protocol_recorded: "protocol_recorded"; }>; metadataRef: z.ZodNullable; evidenceRefs: z.ZodArray; challengeRef: z.ZodNullable; correlationRef: z.ZodNullable; idempotencyKey: z.ZodNullable; }, z.core.$strict>; export declare const ActionContractProposedOutcomeSchema: z.ZodObject<{ schemaVersion: z.ZodLiteral<"handshake.surface-outcome.v0.1">; authorityCreated: z.ZodLiteral; authorityCertificateMinted: z.ZodLiteral; credentialMaterialIncluded: z.ZodLiteral; gatewayCheckPerformed: z.ZodLiteral; greenlightCreated: z.ZodLiteral; mutationAttempted: z.ZodLiteral; mutationCommandIncluded: z.ZodLiteral; rawInternalRecordIncluded: z.ZodLiteral; receiptExportCreated: z.ZodLiteral; greenlightRef: z.ZodNull; gatewayCheckRef: z.ZodNull; mutationAttemptRef: z.ZodNull; proofRef: z.ZodNullable; refusalRef: z.ZodNullable; reasonCodes: z.ZodArray; nextAction: z.ZodEnum<{ read_evidence: "read_evidence"; request_review: "request_review"; recraft_request: "recraft_request"; stop: "stop"; reload_metadata: "reload_metadata"; fix_install: "fix_install"; wait_for_gateway: "wait_for_gateway"; }>; retryability: z.ZodEnum<{ not_retryable: "not_retryable"; retryable_after_recraft: "retryable_after_recraft"; retryable_after_reload: "retryable_after_reload"; }>; commitState: z.ZodEnum<{ ambiguous: "ambiguous"; not_started: "not_started"; protocol_recorded: "protocol_recorded"; }>; metadataRef: z.ZodNullable; evidenceRefs: z.ZodArray; challengeRef: z.ZodNullable; correlationRef: z.ZodNullable; idempotencyKey: z.ZodNullable; outcome: z.ZodLiteral<"action_contract_proposed">; phase: z.ZodLiteral<"proposal">; actionContractId: z.ZodString; contractDigest: z.ZodString; paramsDigest: z.ZodNullable; runtimeExecutionId: z.ZodString; toolCallDraftId: z.ZodString; intentCompilationId: z.ZodString; generatedExecutionGraphId: z.ZodNull; generatedExecutionGraphPosture: z.ZodLiteral<"not_exposed_by_role_scoped_runtime_surface">; }, z.core.$strict>; export declare const NonContractOutcomeSchema: z.ZodObject<{ schemaVersion: z.ZodLiteral<"handshake.surface-outcome.v0.1">; phase: z.ZodEnum<{ metadata: "metadata"; freshness: "freshness"; evidence: "evidence"; readiness: "readiness"; bypass: "bypass"; replay: "replay"; proposal: "proposal"; tool_execution: "tool_execution"; }>; authorityCreated: z.ZodLiteral; authorityCertificateMinted: z.ZodLiteral; credentialMaterialIncluded: z.ZodLiteral; gatewayCheckPerformed: z.ZodLiteral; greenlightCreated: z.ZodLiteral; mutationAttempted: z.ZodLiteral; mutationCommandIncluded: z.ZodLiteral; rawInternalRecordIncluded: z.ZodLiteral; receiptExportCreated: z.ZodLiteral; greenlightRef: z.ZodNull; gatewayCheckRef: z.ZodNull; mutationAttemptRef: z.ZodNull; proofRef: z.ZodNullable; refusalRef: z.ZodNullable; reasonCodes: z.ZodArray; nextAction: z.ZodEnum<{ read_evidence: "read_evidence"; request_review: "request_review"; recraft_request: "recraft_request"; stop: "stop"; reload_metadata: "reload_metadata"; fix_install: "fix_install"; wait_for_gateway: "wait_for_gateway"; }>; retryability: z.ZodEnum<{ not_retryable: "not_retryable"; retryable_after_recraft: "retryable_after_recraft"; retryable_after_reload: "retryable_after_reload"; }>; commitState: z.ZodEnum<{ ambiguous: "ambiguous"; not_started: "not_started"; protocol_recorded: "protocol_recorded"; }>; metadataRef: z.ZodNullable; evidenceRefs: z.ZodArray; challengeRef: z.ZodNullable; correlationRef: z.ZodNullable; idempotencyKey: z.ZodNullable; outcome: z.ZodEnum<{ review_required: "review_required"; proof_gap: "proof_gap"; replay_refused: "replay_refused"; refused: "refused"; raw_sibling_bypass_detected: "raw_sibling_bypass_detected"; install_not_ready: "install_not_ready"; gateway_offline: "gateway_offline"; metadata_stale: "metadata_stale"; tools_list_changed: "tools_list_changed"; tool_execution_error: "tool_execution_error"; }>; }, z.core.$strict>; export declare const SurfaceOutcomeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ schemaVersion: z.ZodLiteral<"handshake.surface-outcome.v0.1">; authorityCreated: z.ZodLiteral; authorityCertificateMinted: z.ZodLiteral; credentialMaterialIncluded: z.ZodLiteral; gatewayCheckPerformed: z.ZodLiteral; greenlightCreated: z.ZodLiteral; mutationAttempted: z.ZodLiteral; mutationCommandIncluded: z.ZodLiteral; rawInternalRecordIncluded: z.ZodLiteral; receiptExportCreated: z.ZodLiteral; greenlightRef: z.ZodNull; gatewayCheckRef: z.ZodNull; mutationAttemptRef: z.ZodNull; proofRef: z.ZodNullable; refusalRef: z.ZodNullable; reasonCodes: z.ZodArray; nextAction: z.ZodEnum<{ read_evidence: "read_evidence"; request_review: "request_review"; recraft_request: "recraft_request"; stop: "stop"; reload_metadata: "reload_metadata"; fix_install: "fix_install"; wait_for_gateway: "wait_for_gateway"; }>; retryability: z.ZodEnum<{ not_retryable: "not_retryable"; retryable_after_recraft: "retryable_after_recraft"; retryable_after_reload: "retryable_after_reload"; }>; commitState: z.ZodEnum<{ ambiguous: "ambiguous"; not_started: "not_started"; protocol_recorded: "protocol_recorded"; }>; metadataRef: z.ZodNullable; evidenceRefs: z.ZodArray; challengeRef: z.ZodNullable; correlationRef: z.ZodNullable; idempotencyKey: z.ZodNullable; outcome: z.ZodLiteral<"action_contract_proposed">; phase: z.ZodLiteral<"proposal">; actionContractId: z.ZodString; contractDigest: z.ZodString; paramsDigest: z.ZodNullable; runtimeExecutionId: z.ZodString; toolCallDraftId: z.ZodString; intentCompilationId: z.ZodString; generatedExecutionGraphId: z.ZodNull; generatedExecutionGraphPosture: z.ZodLiteral<"not_exposed_by_role_scoped_runtime_surface">; }, z.core.$strict>, z.ZodObject<{ schemaVersion: z.ZodLiteral<"handshake.surface-outcome.v0.1">; phase: z.ZodEnum<{ metadata: "metadata"; freshness: "freshness"; evidence: "evidence"; readiness: "readiness"; bypass: "bypass"; replay: "replay"; proposal: "proposal"; tool_execution: "tool_execution"; }>; authorityCreated: z.ZodLiteral; authorityCertificateMinted: z.ZodLiteral; credentialMaterialIncluded: z.ZodLiteral; gatewayCheckPerformed: z.ZodLiteral; greenlightCreated: z.ZodLiteral; mutationAttempted: z.ZodLiteral; mutationCommandIncluded: z.ZodLiteral; rawInternalRecordIncluded: z.ZodLiteral; receiptExportCreated: z.ZodLiteral; greenlightRef: z.ZodNull; gatewayCheckRef: z.ZodNull; mutationAttemptRef: z.ZodNull; proofRef: z.ZodNullable; refusalRef: z.ZodNullable; reasonCodes: z.ZodArray; nextAction: z.ZodEnum<{ read_evidence: "read_evidence"; request_review: "request_review"; recraft_request: "recraft_request"; stop: "stop"; reload_metadata: "reload_metadata"; fix_install: "fix_install"; wait_for_gateway: "wait_for_gateway"; }>; retryability: z.ZodEnum<{ not_retryable: "not_retryable"; retryable_after_recraft: "retryable_after_recraft"; retryable_after_reload: "retryable_after_reload"; }>; commitState: z.ZodEnum<{ ambiguous: "ambiguous"; not_started: "not_started"; protocol_recorded: "protocol_recorded"; }>; metadataRef: z.ZodNullable; evidenceRefs: z.ZodArray; challengeRef: z.ZodNullable; correlationRef: z.ZodNullable; idempotencyKey: z.ZodNullable; outcome: z.ZodEnum<{ review_required: "review_required"; proof_gap: "proof_gap"; replay_refused: "replay_refused"; refused: "refused"; raw_sibling_bypass_detected: "raw_sibling_bypass_detected"; install_not_ready: "install_not_ready"; gateway_offline: "gateway_offline"; metadata_stale: "metadata_stale"; tools_list_changed: "tools_list_changed"; tool_execution_error: "tool_execution_error"; }>; }, z.core.$strict>], "outcome">; export type SurfaceOutcome = z.infer; export type SurfaceOutcomeBaseInput = { outcome: Exclude; phase: z.infer["phase"]; reasonCodes?: string[]; nextAction: z.infer["nextAction"]; retryability?: z.infer["retryability"]; commitState?: z.infer["commitState"]; metadataRef?: string | null; evidenceRefs?: string[]; challengeRef?: string | null; correlationRef?: string | null; idempotencyKey?: string | null; proofRef?: string | null; refusalRef?: string | null; }; export declare function surfaceOutcomeBase(input: SurfaceOutcomeBaseInput): SurfaceOutcome;