import { z } from "zod"; import type { TransitionCallerRole } from "./roles"; import type { TransitionCallerIdentity } from "./hosted-caller-identity"; export declare const HostedDeploymentModeSchema: z.ZodEnum<{ test: "test"; preview: "preview"; production: "production"; "local-dev": "local-dev"; }>; export type HostedDeploymentMode = z.infer; export declare const HostedVerifierStrategySchema: z.ZodEnum<{ local_test_verifier: "local_test_verifier"; clerk_session: "clerk_session"; oauth_oidc_jwks: "oauth_oidc_jwks"; cloudflare_access_jwt: "cloudflare_access_jwt"; pinned_jwks: "pinned_jwks"; custom_server_verifier: "custom_server_verifier"; }>; export type HostedVerifierStrategy = z.infer; export declare const HostedReadRoleSchema: z.ZodEnum<{ viewer: "viewer"; auditor: "auditor"; operator: "operator"; rawEvidenceReader: "rawEvidenceReader"; }>; export type HostedReadRole = z.infer; export declare const HostedScopeSchema: z.ZodEnum<{ "evidence:redacted:read": "evidence:redacted:read"; "evidence:raw:request": "evidence:raw:request"; "evidence:raw:read": "evidence:raw:read"; "evidence:export:create": "evidence:export:create"; "evidence:retention:admin": "evidence:retention:admin"; "hosted:readiness:read": "hosted:readiness:read"; }>; export type HostedScope = z.infer; export declare const HostedTenantSourceSchema: z.ZodEnum<{ verifier_claims: "verifier_claims"; route_scope_match: "route_scope_match"; static_test_scope: "static_test_scope"; }>; export type HostedTenantSource = z.infer; export declare const HostedRawReadPostureSchema: z.ZodEnum<{ unavailable: "unavailable"; allowed: "allowed"; disabled: "disabled"; gated: "gated"; }>; export type HostedRawReadPosture = z.infer; export declare const HostedRawReadAuditPostureSchema: z.ZodObject<{ sourceOwned: z.ZodBoolean; productionEligible: z.ZodBoolean; auditRecordObjectType: z.ZodLiteral<"raw_record_read_audit">; auditEventType: z.ZodLiteral<"raw_evidence_read_audited">; auditCommitBoundary: z.ZodLiteral<"before_raw_record_response">; auditPayloadIncludesRawRecord: z.ZodLiteral; }, z.core.$strict>; export type HostedRawReadAuditPosture = z.infer; export declare function buildHostedRawReadAuditPosture(overrides?: Partial>): HostedRawReadAuditPosture; export declare const HostedReadinessStateSchema: z.ZodEnum<{ read_only: "read_only"; missing: "missing"; active: "active"; disabled: "disabled"; configured_but_unverified: "configured_but_unverified"; not_promoted: "not_promoted"; }>; export type HostedReadinessState = z.infer; export declare const HostedAgenticEndpointAccessBypassPostureSchema: z.ZodEnum<{ unknown: "unknown"; stale: "stale"; blocked: "blocked"; unblocked: "unblocked"; inconclusive: "inconclusive"; }>; export type HostedAgenticEndpointAccessBypassPosture = z.infer; export declare const HostedAgenticEndpointAccessCapabilityStatusSchema: z.ZodEnum<{ unknown: "unknown"; stale: "stale"; unsupported: "unsupported"; supported: "supported"; }>; export type HostedAgenticEndpointAccessCapabilityStatus = z.infer; export declare const HostedAgenticEndpointAccessConfigSchema: z.ZodObject<{ enabled: z.ZodBoolean; protectedSurfaceBindingRef: z.ZodString; protectedSurfaceBindingDigest: z.ZodString; gatewayAuthorityHolderRef: z.ZodString; capabilityReportRef: z.ZodString; kernelVersion: z.ZodString; middlewareVersion: z.ZodString; cloudConfigRevision: z.ZodString; runtimePostureStatus: z.ZodEnum<{ unknown: "unknown"; stale: "stale"; unsupported: "unsupported"; supported: "supported"; }>; rawBypassPosture: z.ZodEnum<{ unknown: "unknown"; stale: "stale"; blocked: "blocked"; unblocked: "unblocked"; inconclusive: "inconclusive"; }>; siblingBypassPosture: z.ZodEnum<{ unknown: "unknown"; stale: "stale"; blocked: "blocked"; unblocked: "unblocked"; inconclusive: "inconclusive"; }>; supportedEndpointAccessSchemaVersions: z.ZodArray; supportedDelegationEvidenceKinds: z.ZodDefault>; supportedPolicyFeatures: z.ZodDefault>; supportedReadbackKinds: z.ZodDefault>; delegatedRequestTranscriptRef: z.ZodDefault>; delegatedRequestTranscriptDigest: z.ZodDefault>; delegatedRequestTranscriptBindingDigest: z.ZodDefault>; dryRunTranscriptRef: z.ZodDefault>; dryRunTranscriptDigest: z.ZodDefault>; dryRunTranscriptBindingDigest: z.ZodDefault>; readbackRef: z.ZodDefault>; readbackDigest: z.ZodDefault>; }, z.core.$strict>; export type HostedAgenticEndpointAccessConfig = z.infer; export type HostedAgenticEndpointAccessConfigInput = z.input; export declare const HostedAgenticEndpointAccessReadinessReportSchema: z.ZodObject<{ configured: z.ZodBoolean; readinessState: z.ZodEnum<{ read_only: "read_only"; missing: "missing"; active: "active"; disabled: "disabled"; configured_but_unverified: "configured_but_unverified"; not_promoted: "not_promoted"; }>; supported: z.ZodBoolean; protectedSurfaceBindingRef: z.ZodNullable; protectedSurfaceBindingDigest: z.ZodNullable; gatewayAuthorityHolderRef: z.ZodNullable; capabilityReportRef: z.ZodNullable; kernelVersion: z.ZodNullable; middlewareVersion: z.ZodNullable; cloudConfigRevision: z.ZodNullable; runtimePostureStatus: z.ZodNullable>; rawBypassPosture: z.ZodNullable>; siblingBypassPosture: z.ZodNullable>; supportedEndpointAccessSchemaVersions: z.ZodArray; supportedDelegationEvidenceKinds: z.ZodArray; supportedPolicyFeatures: z.ZodArray; supportedReadbackKinds: z.ZodArray; delegatedRequestTranscriptRef: z.ZodNullable; delegatedRequestTranscriptDigest: z.ZodNullable; delegatedRequestTranscriptBindingDigest: z.ZodNullable; dryRunTranscriptRef: z.ZodNullable; dryRunTranscriptDigest: z.ZodNullable; dryRunTranscriptBindingDigest: z.ZodNullable; readbackRef: z.ZodNullable; readbackDigest: z.ZodNullable; storagePosture: z.ZodObject<{ d1Authority: z.ZodEnum<{ missing: "missing"; structured_evidence: "structured_evidence"; }>; kvAuthority: z.ZodLiteral<"non_authoritative_cache">; }, z.core.$strict>; authorityBoundary: z.ZodObject<{ createsPolicyDecision: z.ZodLiteral; createsGreenlight: z.ZodLiteral; performsGatewayCheck: z.ZodLiteral; createsMutationAuthority: z.ZodLiteral; storesCredentialMaterial: z.ZodLiteral; storesPaymentMaterial: z.ZodLiteral; exportsDownstreamReceipt: z.ZodLiteral; mintsTerminalCertificate: z.ZodLiteral; }, z.core.$strict>; unsupportedReasonCodes: z.ZodArray; }, z.core.$strict>; export type HostedAgenticEndpointAccessReadinessReport = z.infer; export declare const HostedRolePolicySchema: z.ZodObject<{ admittedTransitionRoles: z.ZodArray>; }, z.core.$strict>; export type HostedRolePolicy = z.infer; export declare const HostedReadEntitlementSchema: z.ZodObject<{ allowedRoles: z.ZodArray>; requiredScopes: z.ZodArray>; }, z.core.$strict>; export type HostedReadEntitlement = z.infer; export declare const HostedStorageBindingPostureSchema: z.ZodObject<{ bindingName: z.ZodString; required: z.ZodBoolean; authority: z.ZodEnum<{ structured_evidence: "structured_evidence"; non_authoritative_cache: "non_authoritative_cache"; }>; }, z.core.$strict>; export type HostedStorageBindingPosture = z.infer; export declare const HostedAdmissionConfigSchema: z.ZodObject<{ deploymentMode: z.ZodEnum<{ test: "test"; preview: "preview"; production: "production"; "local-dev": "local-dev"; }>; verifierStrategy: z.ZodEnum<{ local_test_verifier: "local_test_verifier"; clerk_session: "clerk_session"; oauth_oidc_jwks: "oauth_oidc_jwks"; cloudflare_access_jwt: "cloudflare_access_jwt"; pinned_jwks: "pinned_jwks"; custom_server_verifier: "custom_server_verifier"; }>; maxIdentityAgeSeconds: z.ZodNumber; rolePolicy: z.ZodObject<{ admittedTransitionRoles: z.ZodArray>; }, z.core.$strict>; readPolicy: z.ZodObject<{ redactedEvidence: z.ZodObject<{ allowedRoles: z.ZodArray>; requiredScopes: z.ZodArray>; }, z.core.$strict>; rawEvidence: z.ZodObject<{ allowedRoles: z.ZodArray>; requiredScopes: z.ZodArray>; }, z.core.$strict>; readiness: z.ZodObject<{ allowedRoles: z.ZodArray>; requiredScopes: z.ZodArray>; }, z.core.$strict>; }, z.core.$strict>; tenantSource: z.ZodEnum<{ verifier_claims: "verifier_claims"; route_scope_match: "route_scope_match"; static_test_scope: "static_test_scope"; }>; storage: z.ZodObject<{ d1: z.ZodObject<{ bindingName: z.ZodString; required: z.ZodBoolean; authority: z.ZodEnum<{ structured_evidence: "structured_evidence"; non_authoritative_cache: "non_authoritative_cache"; }>; }, z.core.$strict>; kv: z.ZodObject<{ bindingName: z.ZodString; required: z.ZodBoolean; authority: z.ZodEnum<{ structured_evidence: "structured_evidence"; non_authoritative_cache: "non_authoritative_cache"; }>; }, z.core.$strict>; }, z.core.$strict>; secretNames: z.ZodArray; publicVarNames: z.ZodArray; rawReadPosture: z.ZodEnum<{ unavailable: "unavailable"; allowed: "allowed"; disabled: "disabled"; gated: "gated"; }>; rawReadAudit: z.ZodDefault; auditEventType: z.ZodLiteral<"raw_evidence_read_audited">; auditCommitBoundary: z.ZodLiteral<"before_raw_record_response">; auditPayloadIncludesRawRecord: z.ZodLiteral; }, z.core.$strict>>; redactionProfileRefs: z.ZodArray; retentionPosture: z.ZodEnum<{ disabled: "disabled"; not_configured: "not_configured"; declared_non_certified: "declared_non_certified"; }>; exportPosture: z.ZodEnum<{ disabled: "disabled"; not_configured: "not_configured"; redacted_only: "redacted_only"; }>; readinessExpectations: z.ZodArray; agenticEndpointAccess: z.ZodOptional; rawBypassPosture: z.ZodEnum<{ unknown: "unknown"; stale: "stale"; blocked: "blocked"; unblocked: "unblocked"; inconclusive: "inconclusive"; }>; siblingBypassPosture: z.ZodEnum<{ unknown: "unknown"; stale: "stale"; blocked: "blocked"; unblocked: "unblocked"; inconclusive: "inconclusive"; }>; supportedEndpointAccessSchemaVersions: z.ZodArray; supportedDelegationEvidenceKinds: z.ZodDefault>; supportedPolicyFeatures: z.ZodDefault>; supportedReadbackKinds: z.ZodDefault>; delegatedRequestTranscriptRef: z.ZodDefault>; delegatedRequestTranscriptDigest: z.ZodDefault>; delegatedRequestTranscriptBindingDigest: z.ZodDefault>; dryRunTranscriptRef: z.ZodDefault>; dryRunTranscriptDigest: z.ZodDefault>; dryRunTranscriptBindingDigest: z.ZodDefault>; readbackRef: z.ZodDefault>; readbackDigest: z.ZodDefault>; }, z.core.$strict>>; }, z.core.$strict>; export type HostedAdmissionConfig = z.infer; export type HostedAdmissionConfigInput = z.input; export declare const HostedReadinessReportSchema: z.ZodObject<{ configured: z.ZodBoolean; deploymentMode: z.ZodNullable>; readinessState: z.ZodEnum<{ read_only: "read_only"; missing: "missing"; active: "active"; disabled: "disabled"; configured_but_unverified: "configured_but_unverified"; not_promoted: "not_promoted"; }>; authorityClass: z.ZodLiteral<"hosted_admission_and_redacted_evidence_read_only">; hostedMutationAuthorityCreated: z.ZodLiteral; paymentManagementCreated: z.ZodLiteral; settlementAuthorityCreated: z.ZodLiteral; providerCustodyCreated: z.ZodLiteral; verifier: z.ZodObject<{ strategy: z.ZodNullable>; serverVerifierConfigured: z.ZodBoolean; maxIdentityAgeSeconds: z.ZodNullable; }, z.core.$strict>; roles: z.ZodObject<{ admittedTransitionRoles: z.ZodArray>; redactedEvidenceRoles: z.ZodArray>; rawEvidenceRoles: z.ZodArray>; readinessRoles: z.ZodArray>; redactedEvidenceScopes: z.ZodArray>; rawEvidenceScopes: z.ZodArray>; readinessScopes: z.ZodArray>; }, z.core.$strict>; tenantSource: z.ZodNullable>; storage: z.ZodObject<{ d1: z.ZodObject<{ bindingName: z.ZodNullable; required: z.ZodBoolean; present: z.ZodBoolean; authority: z.ZodEnum<{ missing: "missing"; structured_evidence: "structured_evidence"; }>; environmentPosture: z.ZodEnum<{ unknown: "unknown"; local_or_injected: "local_or_injected"; remote_required: "remote_required"; }>; schema: z.ZodObject<{ checked: z.ZodBoolean; status: z.ZodEnum<{ error: "error"; missing: "missing"; present: "present"; not_checked: "not_checked"; }>; requiredTableRefs: z.ZodArray; missingTableRefs: z.ZodArray; }, z.core.$strict>; }, z.core.$strict>; kv: z.ZodObject<{ bindingName: z.ZodNullable; required: z.ZodBoolean; present: z.ZodBoolean; authority: z.ZodLiteral<"non_authoritative_cache">; }, z.core.$strict>; }, z.core.$strict>; secrets: z.ZodArray>; publicVars: z.ZodArray>; rawReadPosture: z.ZodNullable>; rawReadAudit: z.ZodNullable; auditEventType: z.ZodLiteral<"raw_evidence_read_audited">; auditCommitBoundary: z.ZodLiteral<"before_raw_record_response">; auditPayloadIncludesRawRecord: z.ZodLiteral; }, z.core.$strict>>; redactionProfileRefs: z.ZodArray; retentionPosture: z.ZodNullable>; exportPosture: z.ZodNullable>; readinessExpectations: z.ZodArray; agenticEndpointAccess: z.ZodObject<{ configured: z.ZodBoolean; readinessState: z.ZodEnum<{ read_only: "read_only"; missing: "missing"; active: "active"; disabled: "disabled"; configured_but_unverified: "configured_but_unverified"; not_promoted: "not_promoted"; }>; supported: z.ZodBoolean; protectedSurfaceBindingRef: z.ZodNullable; protectedSurfaceBindingDigest: z.ZodNullable; gatewayAuthorityHolderRef: z.ZodNullable; capabilityReportRef: z.ZodNullable; kernelVersion: z.ZodNullable; middlewareVersion: z.ZodNullable; cloudConfigRevision: z.ZodNullable; runtimePostureStatus: z.ZodNullable>; rawBypassPosture: z.ZodNullable>; siblingBypassPosture: z.ZodNullable>; supportedEndpointAccessSchemaVersions: z.ZodArray; supportedDelegationEvidenceKinds: z.ZodArray; supportedPolicyFeatures: z.ZodArray; supportedReadbackKinds: z.ZodArray; delegatedRequestTranscriptRef: z.ZodNullable; delegatedRequestTranscriptDigest: z.ZodNullable; delegatedRequestTranscriptBindingDigest: z.ZodNullable; dryRunTranscriptRef: z.ZodNullable; dryRunTranscriptDigest: z.ZodNullable; dryRunTranscriptBindingDigest: z.ZodNullable; readbackRef: z.ZodNullable; readbackDigest: z.ZodNullable; storagePosture: z.ZodObject<{ d1Authority: z.ZodEnum<{ missing: "missing"; structured_evidence: "structured_evidence"; }>; kvAuthority: z.ZodLiteral<"non_authoritative_cache">; }, z.core.$strict>; authorityBoundary: z.ZodObject<{ createsPolicyDecision: z.ZodLiteral; createsGreenlight: z.ZodLiteral; performsGatewayCheck: z.ZodLiteral; createsMutationAuthority: z.ZodLiteral; storesCredentialMaterial: z.ZodLiteral; storesPaymentMaterial: z.ZodLiteral; exportsDownstreamReceipt: z.ZodLiteral; mintsTerminalCertificate: z.ZodLiteral; }, z.core.$strict>; unsupportedReasonCodes: z.ZodArray; }, z.core.$strict>; unsupportedCapabilities: z.ZodArray; }, z.core.$strict>; export type HostedReadinessReport = z.infer; export declare function requireHostedAdmissionConfig(config: HostedAdmissionConfigInput | undefined): HostedAdmissionConfig; export declare function parseOptionalHostedAdmissionConfig(config: HostedAdmissionConfigInput | undefined): HostedAdmissionConfig | null; export declare function assertHostedTransitionRolesConfigured(config: HostedAdmissionConfig, requiredRoles: readonly TransitionCallerRole[]): void; export declare function assertHostedRedactedEvidenceEntitlement(identity: TransitionCallerIdentity, config: HostedAdmissionConfig): void; export declare function assertHostedReadinessEntitlement(identity: TransitionCallerIdentity, config: HostedAdmissionConfig): void; export declare function assertHostedRawEvidenceEntitlement(identity: TransitionCallerIdentity, config: HostedAdmissionConfig, headers: Headers, now: string): void;