import { type HistoricalObservationRecord, type HistoricalScalar } from "@actuarial-ts/core"; import { z } from "zod"; export interface HistoricalColumnSelector { readonly columns: readonly string[]; } /** Identity parts are required, ordered strings; each part may declare column aliases. */ export type HistoricalIdentitySelector = HistoricalColumnSelector | { readonly kind: "composite"; readonly parts: readonly (HistoricalColumnSelector & { readonly format?: HistoricalDateSelector["format"]; })[]; }; export interface HistoricalDateSelector extends HistoricalColumnSelector { readonly format: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash"; } export interface HistoricalNumberSelector extends HistoricalColumnSelector { readonly decimalSeparator: "." | ","; readonly thousandsSeparator: "," | "." | " " | null; readonly negative: "leading-minus" | "parentheses-or-leading-minus"; readonly blank: "null" | "error"; readonly scale: number; } export interface HistoricalDimensionSelector extends HistoricalColumnSelector { readonly type: "string" | "number" | "boolean" | "date"; readonly dateFormat?: HistoricalDateSelector["format"]; readonly numberFormat?: Omit; readonly multipleDelimiter?: string; } export interface HistoricalSourceMapping { readonly id: string; readonly version: string; readonly sourceNamespace: string; readonly artifactId: string; readonly grain: HistoricalObservationRecord["grain"]; readonly completeness: HistoricalObservationRecord["completeness"]; readonly fields: { readonly recordId: HistoricalIdentitySelector; readonly claimId: HistoricalIdentitySelector; readonly componentId?: HistoricalColumnSelector; readonly accidentDate?: HistoricalDateSelector; readonly reportDate?: HistoricalDateSelector; readonly evaluationDate?: HistoricalDateSelector; readonly effectiveDate?: HistoricalDateSelector; readonly status?: HistoricalColumnSelector; }; readonly measures: Readonly>; readonly dimensions?: Readonly>; readonly relationships?: { readonly claimantIds?: HistoricalColumnSelector & { readonly delimiter: string; }; readonly occurrenceId?: HistoricalColumnSelector; readonly policyIds?: HistoricalColumnSelector & { readonly delimiter: string; }; readonly coverageIds?: HistoricalColumnSelector & { readonly delimiter: string; }; }; readonly revision: { readonly id: HistoricalIdentitySelector; readonly action?: HistoricalColumnSelector; readonly sequence?: HistoricalNumberSelector; readonly correctedAt?: HistoricalColumnSelector; }; readonly preserveUnmappedAttributes: boolean; } export interface HistoricalSourceRow { readonly rowNumber: number; readonly values: Readonly>; } export interface HistoricalMappedRowRejection { readonly rowNumber: number; readonly source: { readonly artifactId: string; readonly sourceRow: number; }; readonly issues: readonly { readonly path: string; readonly message: string; }[]; } export interface HistoricalMappingResult { readonly mappingId: string; readonly mappingVersion: string; readonly sourceNamespace: string; readonly artifactId: string; readonly records: readonly HistoricalObservationRecord[]; readonly rejected: readonly HistoricalMappedRowRejection[]; readonly attributeCatalog: readonly { readonly id: string; readonly sourceColumn: string; readonly observedTypes: readonly ("string" | "number" | "boolean" | "null")[]; }[]; readonly reconciliation: { readonly inputRows: number; readonly acceptedRows: number; readonly rejectedRows: number; }; } export declare const historicalSourceMappingSchema: z.ZodEffects; version: z.ZodEffects; sourceNamespace: z.ZodEffects; artifactId: z.ZodEffects; grain: z.ZodEnum<["claim-snapshot", "claim-component-snapshot", "transaction"]>; completeness: z.ZodEnum<["complete-snapshot", "partial-snapshot", "change-only"]>; fields: z.ZodObject<{ recordId: z.ZodUnion<[z.ZodObject<{ columns: z.ZodArray, "many">; }, "strict", z.ZodTypeAny, { columns: string[]; }, { columns: string[]; }>, z.ZodObject<{ kind: z.ZodLiteral<"composite">; parts: z.ZodArray, "many">; } & { format: z.ZodOptional>; }, "strict", z.ZodTypeAny, { columns: string[]; format?: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash" | undefined; }, { columns: string[]; format?: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash" | undefined; }>, "many">; }, "strict", z.ZodTypeAny, { kind: "composite"; parts: { columns: string[]; format?: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash" | undefined; }[]; }, { kind: "composite"; parts: { columns: string[]; format?: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash" | undefined; }[]; }>]>; claimId: z.ZodUnion<[z.ZodObject<{ columns: z.ZodArray, "many">; }, "strict", z.ZodTypeAny, { columns: string[]; }, { columns: string[]; }>, z.ZodObject<{ kind: z.ZodLiteral<"composite">; parts: z.ZodArray, "many">; } & { format: z.ZodOptional>; }, "strict", z.ZodTypeAny, { columns: string[]; format?: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash" | undefined; }, { columns: string[]; format?: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash" | undefined; }>, "many">; }, "strict", z.ZodTypeAny, { kind: "composite"; parts: { columns: string[]; format?: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash" | undefined; }[]; }, { kind: "composite"; parts: { columns: string[]; format?: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash" | undefined; }[]; }>]>; componentId: z.ZodOptional, "many">; }, "strict", z.ZodTypeAny, { columns: string[]; }, { columns: string[]; }>>; accidentDate: z.ZodOptional, "many">; } & { format: z.ZodEnum<["iso-yyyy-mm-dd", "mdy-slash", "dmy-slash"]>; }, "strict", z.ZodTypeAny, { format: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash"; columns: string[]; }, { format: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash"; columns: string[]; }>>; reportDate: z.ZodOptional, "many">; } & { format: z.ZodEnum<["iso-yyyy-mm-dd", "mdy-slash", "dmy-slash"]>; }, "strict", z.ZodTypeAny, { format: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash"; columns: string[]; }, { format: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash"; columns: string[]; }>>; evaluationDate: z.ZodOptional, "many">; } & { format: z.ZodEnum<["iso-yyyy-mm-dd", "mdy-slash", "dmy-slash"]>; }, "strict", z.ZodTypeAny, { format: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash"; columns: string[]; }, { format: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash"; columns: string[]; }>>; effectiveDate: z.ZodOptional, "many">; } & { format: z.ZodEnum<["iso-yyyy-mm-dd", "mdy-slash", "dmy-slash"]>; }, "strict", z.ZodTypeAny, { format: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash"; columns: string[]; }, { format: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash"; columns: string[]; }>>; status: z.ZodOptional, "many">; }, "strict", z.ZodTypeAny, { columns: string[]; }, { columns: string[]; }>>; }, "strict", z.ZodTypeAny, { recordId: { columns: string[]; } | { kind: "composite"; parts: { columns: string[]; format?: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash" | undefined; }[]; }; claimId: { columns: string[]; } | { kind: "composite"; parts: { columns: string[]; format?: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash" | undefined; }[]; }; status?: { columns: string[]; } | undefined; evaluationDate?: { format: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash"; columns: string[]; } | undefined; effectiveDate?: { format: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash"; columns: string[]; } | undefined; componentId?: { columns: string[]; } | undefined; accidentDate?: { format: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash"; columns: string[]; } | undefined; reportDate?: { format: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash"; columns: string[]; } | undefined; }, { recordId: { columns: string[]; } | { kind: "composite"; parts: { columns: string[]; format?: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash" | undefined; }[]; }; claimId: { columns: string[]; } | { kind: "composite"; parts: { columns: string[]; format?: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash" | undefined; }[]; }; status?: { columns: string[]; } | undefined; evaluationDate?: { format: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash"; columns: string[]; } | undefined; effectiveDate?: { format: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash"; columns: string[]; } | undefined; componentId?: { columns: string[]; } | undefined; accidentDate?: { format: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash"; columns: string[]; } | undefined; reportDate?: { format: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash"; columns: string[]; } | undefined; }>; measures: z.ZodRecord, z.ZodEffects, "many">; } & { decimalSeparator: z.ZodEnum<[".", ","]>; thousandsSeparator: z.ZodNullable>; negative: z.ZodEnum<["leading-minus", "parentheses-or-leading-minus"]>; blank: z.ZodEnum<["null", "error"]>; scale: z.ZodNumber; }, "strict", z.ZodTypeAny, { scale: number; negative: "leading-minus" | "parentheses-or-leading-minus"; columns: string[]; decimalSeparator: "." | ","; thousandsSeparator: "." | "," | " " | null; blank: "null" | "error"; }, { scale: number; negative: "leading-minus" | "parentheses-or-leading-minus"; columns: string[]; decimalSeparator: "." | ","; thousandsSeparator: "." | "," | " " | null; blank: "null" | "error"; }>, { scale: number; negative: "leading-minus" | "parentheses-or-leading-minus"; columns: string[]; decimalSeparator: "." | ","; thousandsSeparator: "." | "," | " " | null; blank: "null" | "error"; }, { scale: number; negative: "leading-minus" | "parentheses-or-leading-minus"; columns: string[]; decimalSeparator: "." | ","; thousandsSeparator: "." | "," | " " | null; blank: "null" | "error"; }>>; dimensions: z.ZodOptional, z.ZodEffects, "many">; } & { type: z.ZodEnum<["string", "number", "boolean", "date"]>; dateFormat: z.ZodOptional>; numberFormat: z.ZodOptional; thousandsSeparator: z.ZodNullable>; negative: z.ZodEnum<["leading-minus", "parentheses-or-leading-minus"]>; blank: z.ZodEnum<["null", "error"]>; scale: z.ZodNumber; }, "strict", z.ZodTypeAny, { scale: number; negative: "leading-minus" | "parentheses-or-leading-minus"; decimalSeparator: "." | ","; thousandsSeparator: "." | "," | " " | null; blank: "null" | "error"; }, { scale: number; negative: "leading-minus" | "parentheses-or-leading-minus"; decimalSeparator: "." | ","; thousandsSeparator: "." | "," | " " | null; blank: "null" | "error"; }>>; multipleDelimiter: z.ZodOptional; }, "strict", z.ZodTypeAny, { type: "string" | "number" | "boolean" | "date"; columns: string[]; dateFormat?: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash" | undefined; numberFormat?: { scale: number; negative: "leading-minus" | "parentheses-or-leading-minus"; decimalSeparator: "." | ","; thousandsSeparator: "." | "," | " " | null; blank: "null" | "error"; } | undefined; multipleDelimiter?: string | undefined; }, { type: "string" | "number" | "boolean" | "date"; columns: string[]; dateFormat?: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash" | undefined; numberFormat?: { scale: number; negative: "leading-minus" | "parentheses-or-leading-minus"; decimalSeparator: "." | ","; thousandsSeparator: "." | "," | " " | null; blank: "null" | "error"; } | undefined; multipleDelimiter?: string | undefined; }>, { type: "string" | "number" | "boolean" | "date"; columns: string[]; dateFormat?: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash" | undefined; numberFormat?: { scale: number; negative: "leading-minus" | "parentheses-or-leading-minus"; decimalSeparator: "." | ","; thousandsSeparator: "." | "," | " " | null; blank: "null" | "error"; } | undefined; multipleDelimiter?: string | undefined; }, { type: "string" | "number" | "boolean" | "date"; columns: string[]; dateFormat?: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash" | undefined; numberFormat?: { scale: number; negative: "leading-minus" | "parentheses-or-leading-minus"; decimalSeparator: "." | ","; thousandsSeparator: "." | "," | " " | null; blank: "null" | "error"; } | undefined; multipleDelimiter?: string | undefined; }>>>; relationships: z.ZodOptional, "many">; } & { delimiter: z.ZodString; }, "strict", z.ZodTypeAny, { columns: string[]; delimiter: string; }, { columns: string[]; delimiter: string; }>>; occurrenceId: z.ZodOptional, "many">; }, "strict", z.ZodTypeAny, { columns: string[]; }, { columns: string[]; }>>; policyIds: z.ZodOptional, "many">; } & { delimiter: z.ZodString; }, "strict", z.ZodTypeAny, { columns: string[]; delimiter: string; }, { columns: string[]; delimiter: string; }>>; coverageIds: z.ZodOptional, "many">; } & { delimiter: z.ZodString; }, "strict", z.ZodTypeAny, { columns: string[]; delimiter: string; }, { columns: string[]; delimiter: string; }>>; }, "strict", z.ZodTypeAny, { claimantIds?: { columns: string[]; delimiter: string; } | undefined; occurrenceId?: { columns: string[]; } | undefined; policyIds?: { columns: string[]; delimiter: string; } | undefined; coverageIds?: { columns: string[]; delimiter: string; } | undefined; }, { claimantIds?: { columns: string[]; delimiter: string; } | undefined; occurrenceId?: { columns: string[]; } | undefined; policyIds?: { columns: string[]; delimiter: string; } | undefined; coverageIds?: { columns: string[]; delimiter: string; } | undefined; }>>; revision: z.ZodObject<{ id: z.ZodUnion<[z.ZodObject<{ columns: z.ZodArray, "many">; }, "strict", z.ZodTypeAny, { columns: string[]; }, { columns: string[]; }>, z.ZodObject<{ kind: z.ZodLiteral<"composite">; parts: z.ZodArray, "many">; } & { format: z.ZodOptional>; }, "strict", z.ZodTypeAny, { columns: string[]; format?: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash" | undefined; }, { columns: string[]; format?: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash" | undefined; }>, "many">; }, "strict", z.ZodTypeAny, { kind: "composite"; parts: { columns: string[]; format?: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash" | undefined; }[]; }, { kind: "composite"; parts: { columns: string[]; format?: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash" | undefined; }[]; }>]>; action: z.ZodOptional, "many">; }, "strict", z.ZodTypeAny, { columns: string[]; }, { columns: string[]; }>>; sequence: z.ZodOptional, "many">; } & { decimalSeparator: z.ZodEnum<[".", ","]>; thousandsSeparator: z.ZodNullable>; negative: z.ZodEnum<["leading-minus", "parentheses-or-leading-minus"]>; blank: z.ZodEnum<["null", "error"]>; scale: z.ZodNumber; }, "strict", z.ZodTypeAny, { scale: number; negative: "leading-minus" | "parentheses-or-leading-minus"; columns: string[]; decimalSeparator: "." | ","; thousandsSeparator: "." | "," | " " | null; blank: "null" | "error"; }, { scale: number; negative: "leading-minus" | "parentheses-or-leading-minus"; columns: string[]; decimalSeparator: "." | ","; thousandsSeparator: "." | "," | " " | null; blank: "null" | "error"; }>, { scale: number; negative: "leading-minus" | "parentheses-or-leading-minus"; columns: string[]; decimalSeparator: "." | ","; thousandsSeparator: "." | "," | " " | null; blank: "null" | "error"; }, { scale: number; negative: "leading-minus" | "parentheses-or-leading-minus"; columns: string[]; decimalSeparator: "." | ","; thousandsSeparator: "." | "," | " " | null; blank: "null" | "error"; }>>; correctedAt: z.ZodOptional, "many">; }, "strict", z.ZodTypeAny, { columns: string[]; }, { columns: string[]; }>>; }, "strict", z.ZodTypeAny, { id: { columns: string[]; } | { kind: "composite"; parts: { columns: string[]; format?: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash" | undefined; }[]; }; action?: { columns: string[]; } | undefined; sequence?: { scale: number; negative: "leading-minus" | "parentheses-or-leading-minus"; columns: string[]; decimalSeparator: "." | ","; thousandsSeparator: "." | "," | " " | null; blank: "null" | "error"; } | undefined; correctedAt?: { columns: string[]; } | undefined; }, { id: { columns: string[]; } | { kind: "composite"; parts: { columns: string[]; format?: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash" | undefined; }[]; }; action?: { columns: string[]; } | undefined; sequence?: { scale: number; negative: "leading-minus" | "parentheses-or-leading-minus"; columns: string[]; decimalSeparator: "." | ","; thousandsSeparator: "." | "," | " " | null; blank: "null" | "error"; } | undefined; correctedAt?: { columns: string[]; } | undefined; }>; preserveUnmappedAttributes: z.ZodBoolean; }, "strict", z.ZodTypeAny, { artifactId: string; id: string; revision: { id: { columns: string[]; } | { kind: "composite"; parts: { columns: string[]; format?: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash" | undefined; }[]; }; action?: { columns: string[]; } | undefined; sequence?: { scale: number; negative: "leading-minus" | "parentheses-or-leading-minus"; columns: string[]; decimalSeparator: "." | ","; thousandsSeparator: "." | "," | " " | null; blank: "null" | "error"; } | undefined; correctedAt?: { columns: string[]; } | undefined; }; sourceNamespace: string; grain: "claim-snapshot" | "claim-component-snapshot" | "transaction"; measures: Record; completeness: "complete-snapshot" | "partial-snapshot" | "change-only"; version: string; fields: { recordId: { columns: string[]; } | { kind: "composite"; parts: { columns: string[]; format?: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash" | undefined; }[]; }; claimId: { columns: string[]; } | { kind: "composite"; parts: { columns: string[]; format?: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash" | undefined; }[]; }; status?: { columns: string[]; } | undefined; evaluationDate?: { format: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash"; columns: string[]; } | undefined; effectiveDate?: { format: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash"; columns: string[]; } | undefined; componentId?: { columns: string[]; } | undefined; accidentDate?: { format: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash"; columns: string[]; } | undefined; reportDate?: { format: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash"; columns: string[]; } | undefined; }; preserveUnmappedAttributes: boolean; dimensions?: Record | undefined; relationships?: { claimantIds?: { columns: string[]; delimiter: string; } | undefined; occurrenceId?: { columns: string[]; } | undefined; policyIds?: { columns: string[]; delimiter: string; } | undefined; coverageIds?: { columns: string[]; delimiter: string; } | undefined; } | undefined; }, { artifactId: string; id: string; revision: { id: { columns: string[]; } | { kind: "composite"; parts: { columns: string[]; format?: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash" | undefined; }[]; }; action?: { columns: string[]; } | undefined; sequence?: { scale: number; negative: "leading-minus" | "parentheses-or-leading-minus"; columns: string[]; decimalSeparator: "." | ","; thousandsSeparator: "." | "," | " " | null; blank: "null" | "error"; } | undefined; correctedAt?: { columns: string[]; } | undefined; }; sourceNamespace: string; grain: "claim-snapshot" | "claim-component-snapshot" | "transaction"; measures: Record; completeness: "complete-snapshot" | "partial-snapshot" | "change-only"; version: string; fields: { recordId: { columns: string[]; } | { kind: "composite"; parts: { columns: string[]; format?: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash" | undefined; }[]; }; claimId: { columns: string[]; } | { kind: "composite"; parts: { columns: string[]; format?: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash" | undefined; }[]; }; status?: { columns: string[]; } | undefined; evaluationDate?: { format: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash"; columns: string[]; } | undefined; effectiveDate?: { format: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash"; columns: string[]; } | undefined; componentId?: { columns: string[]; } | undefined; accidentDate?: { format: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash"; columns: string[]; } | undefined; reportDate?: { format: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash"; columns: string[]; } | undefined; }; preserveUnmappedAttributes: boolean; dimensions?: Record | undefined; relationships?: { claimantIds?: { columns: string[]; delimiter: string; } | undefined; occurrenceId?: { columns: string[]; } | undefined; policyIds?: { columns: string[]; delimiter: string; } | undefined; coverageIds?: { columns: string[]; delimiter: string; } | undefined; } | undefined; }>, { artifactId: string; id: string; revision: { id: { columns: string[]; } | { kind: "composite"; parts: { columns: string[]; format?: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash" | undefined; }[]; }; action?: { columns: string[]; } | undefined; sequence?: { scale: number; negative: "leading-minus" | "parentheses-or-leading-minus"; columns: string[]; decimalSeparator: "." | ","; thousandsSeparator: "." | "," | " " | null; blank: "null" | "error"; } | undefined; correctedAt?: { columns: string[]; } | undefined; }; sourceNamespace: string; grain: "claim-snapshot" | "claim-component-snapshot" | "transaction"; measures: Record; completeness: "complete-snapshot" | "partial-snapshot" | "change-only"; version: string; fields: { recordId: { columns: string[]; } | { kind: "composite"; parts: { columns: string[]; format?: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash" | undefined; }[]; }; claimId: { columns: string[]; } | { kind: "composite"; parts: { columns: string[]; format?: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash" | undefined; }[]; }; status?: { columns: string[]; } | undefined; evaluationDate?: { format: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash"; columns: string[]; } | undefined; effectiveDate?: { format: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash"; columns: string[]; } | undefined; componentId?: { columns: string[]; } | undefined; accidentDate?: { format: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash"; columns: string[]; } | undefined; reportDate?: { format: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash"; columns: string[]; } | undefined; }; preserveUnmappedAttributes: boolean; dimensions?: Record | undefined; relationships?: { claimantIds?: { columns: string[]; delimiter: string; } | undefined; occurrenceId?: { columns: string[]; } | undefined; policyIds?: { columns: string[]; delimiter: string; } | undefined; coverageIds?: { columns: string[]; delimiter: string; } | undefined; } | undefined; }, { artifactId: string; id: string; revision: { id: { columns: string[]; } | { kind: "composite"; parts: { columns: string[]; format?: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash" | undefined; }[]; }; action?: { columns: string[]; } | undefined; sequence?: { scale: number; negative: "leading-minus" | "parentheses-or-leading-minus"; columns: string[]; decimalSeparator: "." | ","; thousandsSeparator: "." | "," | " " | null; blank: "null" | "error"; } | undefined; correctedAt?: { columns: string[]; } | undefined; }; sourceNamespace: string; grain: "claim-snapshot" | "claim-component-snapshot" | "transaction"; measures: Record; completeness: "complete-snapshot" | "partial-snapshot" | "change-only"; version: string; fields: { recordId: { columns: string[]; } | { kind: "composite"; parts: { columns: string[]; format?: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash" | undefined; }[]; }; claimId: { columns: string[]; } | { kind: "composite"; parts: { columns: string[]; format?: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash" | undefined; }[]; }; status?: { columns: string[]; } | undefined; evaluationDate?: { format: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash"; columns: string[]; } | undefined; effectiveDate?: { format: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash"; columns: string[]; } | undefined; componentId?: { columns: string[]; } | undefined; accidentDate?: { format: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash"; columns: string[]; } | undefined; reportDate?: { format: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash"; columns: string[]; } | undefined; }; preserveUnmappedAttributes: boolean; dimensions?: Record | undefined; relationships?: { claimantIds?: { columns: string[]; delimiter: string; } | undefined; occurrenceId?: { columns: string[]; } | undefined; policyIds?: { columns: string[]; delimiter: string; } | undefined; coverageIds?: { columns: string[]; delimiter: string; } | undefined; } | undefined; }>; export declare function parseHistoricalSourceMapping(value: unknown): HistoricalSourceMapping; export declare function mapHistoricalSourceRows(mappingInput: HistoricalSourceMapping | unknown, rowsInput: readonly HistoricalSourceRow[]): HistoricalMappingResult; //# sourceMappingURL=historyMapping.d.ts.map