import { z } from "zod"; import { calculateAnalysisStatistic, type AnalysisStatisticResult } from "@actuarial-ts/core"; /** Limits of the standalone data boundary, not a claim about the legacy core kernel. */ export declare const ANALYSIS_STATISTIC_INPUT_LIMITS: Readonly<{ maximumObservations: 50000; maximumInputCharacters: 20000000; }>; export declare const analysisStatisticRequestSchema: z.ZodObject<{ measure: z.ZodEffects; unit: z.ZodEffects; developmentSemantics: z.ZodEnum<["cumulative", "incremental", "point-in-time"]>; statistic: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{ kind: z.ZodLiteral<"sum">; measureId: z.ZodEffects; }, "strict", z.ZodTypeAny, { measureId: string; kind: "sum"; }, { measureId: string; kind: "sum"; }>, z.ZodObject<{ kind: z.ZodLiteral<"ratio">; numeratorMeasureId: z.ZodEffects; denominatorMeasureId: z.ZodEffects; scale: z.ZodNumber; denominatorRule: z.ZodLiteral<"positive">; }, "strict", z.ZodTypeAny, { kind: "ratio"; numeratorMeasureId: string; denominatorMeasureId: string; scale: number; denominatorRule: "positive"; }, { kind: "ratio"; numeratorMeasureId: string; denominatorMeasureId: string; scale: number; denominatorRule: "positive"; }>, z.ZodObject<{ kind: z.ZodLiteral<"distinct-count">; entity: z.ZodEnum<["claim", "claimant", "occurrence", "policy", "coverage"]>; }, "strict", z.ZodTypeAny, { kind: "distinct-count"; entity: "claim" | "claimant" | "occurrence" | "policy" | "coverage"; }, { kind: "distinct-count"; entity: "claim" | "claimant" | "occurrence" | "policy" | "coverage"; }>, z.ZodObject<{ kind: z.ZodLiteral<"weighted-mean">; measureId: z.ZodEffects; weightMeasureId: z.ZodEffects; }, "strict", z.ZodTypeAny, { measureId: string; kind: "weighted-mean"; weightMeasureId: string; }, { measureId: string; kind: "weighted-mean"; weightMeasureId: string; }>, z.ZodObject<{ kind: z.ZodEnum<["minimum", "maximum"]>; measureId: z.ZodEffects; }, "strict", z.ZodTypeAny, { measureId: string; kind: "minimum" | "maximum"; }, { measureId: string; kind: "minimum" | "maximum"; }>, z.ZodObject<{ kind: z.ZodLiteral<"quantile">; measureId: z.ZodEffects; probability: z.ZodNumber; method: z.ZodLiteral<"hf-type-7">; }, "strict", z.ZodTypeAny, { measureId: string; kind: "quantile"; probability: number; method: "hf-type-7"; }, { measureId: string; kind: "quantile"; probability: number; method: "hf-type-7"; }>, z.ZodObject<{ kind: z.ZodLiteral<"duration">; start: z.ZodEnum<["accident-date", "report-date"]>; end: z.ZodEnum<["report-date", "closed-date", "evaluation-date"]>; unit: z.ZodLiteral<"days">; population: z.ZodEnum<["all-with-observed-endpoint", "closed-only"]>; }, "strict", z.ZodTypeAny, { kind: "duration"; start: "accident-date" | "report-date"; end: "report-date" | "closed-date" | "evaluation-date"; unit: "days"; population: "all-with-observed-endpoint" | "closed-only"; }, { kind: "duration"; start: "accident-date" | "report-date"; end: "report-date" | "closed-date" | "evaluation-date"; unit: "days"; population: "all-with-observed-endpoint" | "closed-only"; }>, z.ZodObject<{ kind: z.ZodLiteral<"survival-quantile">; start: z.ZodEnum<["accident-date", "report-date"]>; event: z.ZodLiteral<"closed-date">; censor: z.ZodLiteral<"evaluation-date">; unit: z.ZodLiteral<"days">; probability: z.ZodNumber; method: z.ZodLiteral<"kaplan-meier-product-limit">; }, "strict", z.ZodTypeAny, { kind: "survival-quantile"; probability: number; method: "kaplan-meier-product-limit"; start: "accident-date" | "report-date"; unit: "days"; event: "closed-date"; censor: "evaluation-date"; }, { kind: "survival-quantile"; probability: number; method: "kaplan-meier-product-limit"; start: "accident-date" | "report-date"; unit: "days"; event: "closed-date"; censor: "evaluation-date"; }>]>; unitFactors: z.ZodOptional, string, string>, z.ZodNumber>, Record, Record>, Record, Record>>; populationScopeId: z.ZodEffects; condition: z.ZodOptional>; }, "strict", z.ZodTypeAny, { id: string; unit: string; developmentSemantics: "cumulative" | "incremental" | "point-in-time"; statistic: { measureId: string; kind: "sum"; } | { kind: "ratio"; numeratorMeasureId: string; denominatorMeasureId: string; scale: number; denominatorRule: "positive"; } | { kind: "distinct-count"; entity: "claim" | "claimant" | "occurrence" | "policy" | "coverage"; } | { measureId: string; kind: "weighted-mean"; weightMeasureId: string; } | { measureId: string; kind: "minimum" | "maximum"; } | { measureId: string; kind: "quantile"; probability: number; method: "hf-type-7"; } | { kind: "duration"; start: "accident-date" | "report-date"; end: "report-date" | "closed-date" | "evaluation-date"; unit: "days"; population: "all-with-observed-endpoint" | "closed-only"; } | { kind: "survival-quantile"; probability: number; method: "kaplan-meier-product-limit"; start: "accident-date" | "report-date"; unit: "days"; event: "closed-date"; censor: "evaluation-date"; }; populationScopeId: string; unitFactors?: Record | undefined; condition?: import("@actuarial-ts/core").AnalysisPredicate | undefined; }, { id: string; unit: string; developmentSemantics: "cumulative" | "incremental" | "point-in-time"; statistic: { measureId: string; kind: "sum"; } | { kind: "ratio"; numeratorMeasureId: string; denominatorMeasureId: string; scale: number; denominatorRule: "positive"; } | { kind: "distinct-count"; entity: "claim" | "claimant" | "occurrence" | "policy" | "coverage"; } | { measureId: string; kind: "weighted-mean"; weightMeasureId: string; } | { measureId: string; kind: "minimum" | "maximum"; } | { measureId: string; kind: "quantile"; probability: number; method: "hf-type-7"; } | { kind: "duration"; start: "accident-date" | "report-date"; end: "report-date" | "closed-date" | "evaluation-date"; unit: "days"; population: "all-with-observed-endpoint" | "closed-only"; } | { kind: "survival-quantile"; probability: number; method: "kaplan-meier-product-limit"; start: "accident-date" | "report-date"; unit: "days"; event: "closed-date"; censor: "evaluation-date"; }; populationScopeId: string; unitFactors?: Record | undefined; condition?: import("@actuarial-ts/core").AnalysisPredicate | undefined; }>, { id: string; unit: string; developmentSemantics: "cumulative" | "incremental" | "point-in-time"; statistic: { measureId: string; kind: "sum"; } | { kind: "ratio"; numeratorMeasureId: string; denominatorMeasureId: string; scale: number; denominatorRule: "positive"; } | { kind: "distinct-count"; entity: "claim" | "claimant" | "occurrence" | "policy" | "coverage"; } | { measureId: string; kind: "weighted-mean"; weightMeasureId: string; } | { measureId: string; kind: "minimum" | "maximum"; } | { measureId: string; kind: "quantile"; probability: number; method: "hf-type-7"; } | { kind: "duration"; start: "accident-date" | "report-date"; end: "report-date" | "closed-date" | "evaluation-date"; unit: "days"; population: "all-with-observed-endpoint" | "closed-only"; } | { kind: "survival-quantile"; probability: number; method: "kaplan-meier-product-limit"; start: "accident-date" | "report-date"; unit: "days"; event: "closed-date"; censor: "evaluation-date"; }; populationScopeId: string; unitFactors?: Record | undefined; condition?: import("@actuarial-ts/core").AnalysisPredicate | undefined; }, { id: string; unit: string; developmentSemantics: "cumulative" | "incremental" | "point-in-time"; statistic: { measureId: string; kind: "sum"; } | { kind: "ratio"; numeratorMeasureId: string; denominatorMeasureId: string; scale: number; denominatorRule: "positive"; } | { kind: "distinct-count"; entity: "claim" | "claimant" | "occurrence" | "policy" | "coverage"; } | { measureId: string; kind: "weighted-mean"; weightMeasureId: string; } | { measureId: string; kind: "minimum" | "maximum"; } | { measureId: string; kind: "quantile"; probability: number; method: "hf-type-7"; } | { kind: "duration"; start: "accident-date" | "report-date"; end: "report-date" | "closed-date" | "evaluation-date"; unit: "days"; population: "all-with-observed-endpoint" | "closed-only"; } | { kind: "survival-quantile"; probability: number; method: "kaplan-meier-product-limit"; start: "accident-date" | "report-date"; unit: "days"; event: "closed-date"; censor: "evaluation-date"; }; populationScopeId: string; unitFactors?: Record | undefined; condition?: import("@actuarial-ts/core").AnalysisPredicate | undefined; }>; observations: z.ZodEffects; claimId: z.ZodEffects; evaluationDate: z.ZodEffects; observationKind: z.ZodOptional>; accidentDate: z.ZodNullable>; reportDate: z.ZodNullable>; status: z.ZodNullable>; measures: z.ZodEffects, string, string>, z.ZodUnion<[z.ZodNumber, z.ZodNull]>>, Record, Record>; dimensions: z.ZodEffects, string, string>, z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray, "many">]>>, Record, Record>; relationships: z.ZodObject<{ claimantIds: z.ZodOptional, "many">>; occurrenceId: z.ZodOptional>; policyIds: z.ZodOptional, "many">>; coverageIds: z.ZodOptional, "many">>; }, "strict", z.ZodTypeAny, { claimantIds?: string[] | undefined; occurrenceId?: string | undefined; policyIds?: string[] | undefined; coverageIds?: string[] | undefined; }, { claimantIds?: string[] | undefined; occurrenceId?: string | undefined; policyIds?: string[] | undefined; coverageIds?: string[] | undefined; }>; sources: z.ZodArray; sourceFile: z.ZodOptional>; sourceSheet: z.ZodOptional>; sourceRow: z.ZodOptional; }, "strict", z.ZodTypeAny, { artifactId: string; sourceFile?: string | undefined; sourceSheet?: string | undefined; sourceRow?: number | undefined; }, { artifactId: string; sourceFile?: string | undefined; sourceSheet?: string | undefined; sourceRow?: number | undefined; }>, "many">; }, "strict", z.ZodTypeAny, { status: string | null; evaluationDate: string; dimensions: Record; sourceNamespace: string; claimId: string; accidentDate: string | null; reportDate: string | null; measures: Record; relationships: { claimantIds?: string[] | undefined; occurrenceId?: string | undefined; policyIds?: string[] | undefined; coverageIds?: string[] | undefined; }; sources: { artifactId: string; sourceFile?: string | undefined; sourceSheet?: string | undefined; sourceRow?: number | undefined; }[]; observationKind?: "observed-snapshot" | "carried-forward" | "reconstructed-from-changes" | undefined; }, { status: string | null; evaluationDate: string; dimensions: Record; sourceNamespace: string; claimId: string; accidentDate: string | null; reportDate: string | null; measures: Record; relationships: { claimantIds?: string[] | undefined; occurrenceId?: string | undefined; policyIds?: string[] | undefined; coverageIds?: string[] | undefined; }; sources: { artifactId: string; sourceFile?: string | undefined; sourceSheet?: string | undefined; sourceRow?: number | undefined; }[]; observationKind?: "observed-snapshot" | "carried-forward" | "reconstructed-from-changes" | undefined; }>, "many">, { status: string | null; evaluationDate: string; dimensions: Record; sourceNamespace: string; claimId: string; accidentDate: string | null; reportDate: string | null; measures: Record; relationships: { claimantIds?: string[] | undefined; occurrenceId?: string | undefined; policyIds?: string[] | undefined; coverageIds?: string[] | undefined; }; sources: { artifactId: string; sourceFile?: string | undefined; sourceSheet?: string | undefined; sourceRow?: number | undefined; }[]; observationKind?: "observed-snapshot" | "carried-forward" | "reconstructed-from-changes" | undefined; }[], { status: string | null; evaluationDate: string; dimensions: Record; sourceNamespace: string; claimId: string; accidentDate: string | null; reportDate: string | null; measures: Record; relationships: { claimantIds?: string[] | undefined; occurrenceId?: string | undefined; policyIds?: string[] | undefined; coverageIds?: string[] | undefined; }; sources: { artifactId: string; sourceFile?: string | undefined; sourceSheet?: string | undefined; sourceRow?: number | undefined; }[]; observationKind?: "observed-snapshot" | "carried-forward" | "reconstructed-from-changes" | undefined; }[]>; selection: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{ kind: z.ZodLiteral<"all-observations">; }, "strict", z.ZodTypeAny, { kind: "all-observations"; }, { kind: "all-observations"; }>, z.ZodObject<{ kind: z.ZodLiteral<"evaluation-date">; evaluationDate: z.ZodEffects; observationSelection: z.ZodEnum<["exact", "latest-on-or-before"]>; }, "strict", z.ZodTypeAny, { evaluationDate: string; kind: "evaluation-date"; observationSelection: "exact" | "latest-on-or-before"; }, { evaluationDate: string; kind: "evaluation-date"; observationSelection: "exact" | "latest-on-or-before"; }>]>; }, "strict", z.ZodTypeAny, { measure: { id: string; unit: string; developmentSemantics: "cumulative" | "incremental" | "point-in-time"; statistic: { measureId: string; kind: "sum"; } | { kind: "ratio"; numeratorMeasureId: string; denominatorMeasureId: string; scale: number; denominatorRule: "positive"; } | { kind: "distinct-count"; entity: "claim" | "claimant" | "occurrence" | "policy" | "coverage"; } | { measureId: string; kind: "weighted-mean"; weightMeasureId: string; } | { measureId: string; kind: "minimum" | "maximum"; } | { measureId: string; kind: "quantile"; probability: number; method: "hf-type-7"; } | { kind: "duration"; start: "accident-date" | "report-date"; end: "report-date" | "closed-date" | "evaluation-date"; unit: "days"; population: "all-with-observed-endpoint" | "closed-only"; } | { kind: "survival-quantile"; probability: number; method: "kaplan-meier-product-limit"; start: "accident-date" | "report-date"; unit: "days"; event: "closed-date"; censor: "evaluation-date"; }; populationScopeId: string; unitFactors?: Record | undefined; condition?: import("@actuarial-ts/core").AnalysisPredicate | undefined; }; observations: { status: string | null; evaluationDate: string; dimensions: Record; sourceNamespace: string; claimId: string; accidentDate: string | null; reportDate: string | null; measures: Record; relationships: { claimantIds?: string[] | undefined; occurrenceId?: string | undefined; policyIds?: string[] | undefined; coverageIds?: string[] | undefined; }; sources: { artifactId: string; sourceFile?: string | undefined; sourceSheet?: string | undefined; sourceRow?: number | undefined; }[]; observationKind?: "observed-snapshot" | "carried-forward" | "reconstructed-from-changes" | undefined; }[]; selection: { kind: "all-observations"; } | { evaluationDate: string; kind: "evaluation-date"; observationSelection: "exact" | "latest-on-or-before"; }; }, { measure: { id: string; unit: string; developmentSemantics: "cumulative" | "incremental" | "point-in-time"; statistic: { measureId: string; kind: "sum"; } | { kind: "ratio"; numeratorMeasureId: string; denominatorMeasureId: string; scale: number; denominatorRule: "positive"; } | { kind: "distinct-count"; entity: "claim" | "claimant" | "occurrence" | "policy" | "coverage"; } | { measureId: string; kind: "weighted-mean"; weightMeasureId: string; } | { measureId: string; kind: "minimum" | "maximum"; } | { measureId: string; kind: "quantile"; probability: number; method: "hf-type-7"; } | { kind: "duration"; start: "accident-date" | "report-date"; end: "report-date" | "closed-date" | "evaluation-date"; unit: "days"; population: "all-with-observed-endpoint" | "closed-only"; } | { kind: "survival-quantile"; probability: number; method: "kaplan-meier-product-limit"; start: "accident-date" | "report-date"; unit: "days"; event: "closed-date"; censor: "evaluation-date"; }; populationScopeId: string; unitFactors?: Record | undefined; condition?: import("@actuarial-ts/core").AnalysisPredicate | undefined; }; observations: { status: string | null; evaluationDate: string; dimensions: Record; sourceNamespace: string; claimId: string; accidentDate: string | null; reportDate: string | null; measures: Record; relationships: { claimantIds?: string[] | undefined; occurrenceId?: string | undefined; policyIds?: string[] | undefined; coverageIds?: string[] | undefined; }; sources: { artifactId: string; sourceFile?: string | undefined; sourceSheet?: string | undefined; sourceRow?: number | undefined; }[]; observationKind?: "observed-snapshot" | "carried-forward" | "reconstructed-from-changes" | undefined; }[]; selection: { kind: "all-observations"; } | { evaluationDate: string; kind: "evaluation-date"; observationSelection: "exact" | "latest-on-or-before"; }; }>; export declare function parseAnalysisStatisticRequest(input: unknown): Parameters[0]; /** Executes the existing core kernel on a caller-selected, revision-resolved population. */ export declare function calculateAnalysisStatisticFromInput(input: unknown): AnalysisStatisticResult; //# sourceMappingURL=analysisStatisticContracts.d.ts.map