import { z } from 'zod'; import type { DappConfiguration } from './dappConfiguration.ts'; import type { DappDefinition } from './dappDefinition.ts'; export declare const DappModelIssueCodes: readonly ["configuration.invalid", "definition.invalid", "profile.actor-role-unknown", "profile.auxiliary-store-durability-insufficient", "profile.auxiliary-store-missing", "profile.auxiliary-store-undeclared", "profile.content-policy-mismatch", "profile.coordination-clock-skew-excessive", "profile.coordination-message-limit-excessive", "profile.coordination-profile-mismatch", "profile.coordination-replay-retention-insufficient", "profile.datalake-access-unsupported", "profile.datalake-protection-unsupported", "profile.datalake-replication-insufficient", "profile.datalake-retention-insufficient", "profile.datalake-unavailability-mismatch", "profile.dapp-id-mismatch", "profile.definition-version-mismatch", "profile.execution-mode-unsupported", "profile.external-interaction-mode-mismatch", "profile.external-source-kind-unsupported", "profile.identity-role-unknown", "profile.projection-capability-mismatch", "profile.projection-floor-mismatch", "profile.projection-profile-mismatch", "profile.projection-progress-mismatch"]; export declare const DappModelIssueCodeZod: z.ZodEnum<{ "configuration.invalid": "configuration.invalid"; "definition.invalid": "definition.invalid"; "profile.actor-role-unknown": "profile.actor-role-unknown"; "profile.auxiliary-store-durability-insufficient": "profile.auxiliary-store-durability-insufficient"; "profile.auxiliary-store-missing": "profile.auxiliary-store-missing"; "profile.auxiliary-store-undeclared": "profile.auxiliary-store-undeclared"; "profile.content-policy-mismatch": "profile.content-policy-mismatch"; "profile.coordination-clock-skew-excessive": "profile.coordination-clock-skew-excessive"; "profile.coordination-message-limit-excessive": "profile.coordination-message-limit-excessive"; "profile.coordination-profile-mismatch": "profile.coordination-profile-mismatch"; "profile.coordination-replay-retention-insufficient": "profile.coordination-replay-retention-insufficient"; "profile.datalake-access-unsupported": "profile.datalake-access-unsupported"; "profile.datalake-protection-unsupported": "profile.datalake-protection-unsupported"; "profile.datalake-replication-insufficient": "profile.datalake-replication-insufficient"; "profile.datalake-retention-insufficient": "profile.datalake-retention-insufficient"; "profile.datalake-unavailability-mismatch": "profile.datalake-unavailability-mismatch"; "profile.dapp-id-mismatch": "profile.dapp-id-mismatch"; "profile.definition-version-mismatch": "profile.definition-version-mismatch"; "profile.execution-mode-unsupported": "profile.execution-mode-unsupported"; "profile.external-interaction-mode-mismatch": "profile.external-interaction-mode-mismatch"; "profile.external-source-kind-unsupported": "profile.external-source-kind-unsupported"; "profile.identity-role-unknown": "profile.identity-role-unknown"; "profile.projection-capability-mismatch": "profile.projection-capability-mismatch"; "profile.projection-floor-mismatch": "profile.projection-floor-mismatch"; "profile.projection-profile-mismatch": "profile.projection-profile-mismatch"; "profile.projection-progress-mismatch": "profile.projection-progress-mismatch"; }>; export type DappModelIssueCode = z.infer; export interface DappModelIssue { code: DappModelIssueCode; message: string; path: (number | string)[]; } export interface DappProfile { configuration: DappConfiguration; definition: DappDefinition; } export interface DappModelValidationSuccess { success: true; value: T; } export interface DappModelValidationFailure { issues: DappModelIssue[]; success: false; } export type DappModelValidationResult = DappModelValidationFailure | DappModelValidationSuccess; export declare function validateDappDefinition(value: unknown): DappModelValidationResult; export declare function validateDappConfiguration(value: unknown): DappModelValidationResult; export declare function validateDappProfile(definitionValue: unknown, configurationValue: unknown): DappModelValidationResult; //# sourceMappingURL=validation.d.ts.map