import type { LessonUpdateFields } from "./types/bulkUpdateFields"; import type { LessonRecord, StringFields } from "./types/lessonRecord"; import type { NonIdArrayElement, NonIdArrayFields, UpdateRecord } from "./types/parsingTypes"; import type { UnitRecord } from "./types/unitRecord"; import { type ErrorLogger } from "./parsingErrors"; /** * Handles the non-id array fields, such as teacher_tips, key_learning_points, etc. * * @param bulkUpdateFields The store of metadata related to each field * @param key The key of the field to update * @param update The update row to condense data from * @param currentField The current field data to compare against * @param logError The error logger to log errors to * @returns */ export declare const handleNonIdArrayFields: (bulkUpdateFields: LessonUpdateFields, key: NonIdArrayFields, update: UpdateRecord, currentField: LessonRecord[NonIdArrayFields], logError: ErrorLogger) => NonIdArrayElement[]; export declare const checkStringValue: (value: string, key: string, logError: ErrorLogger, uid: string, updateAsRecord: Partial | Partial, maxLength?: number) => boolean; /** * Handles the string fields, such as title and pupil_lesson_outcome. * * @param update The update row to condense data from * @param key The key of the field to update * @param updateAsRecord The record to update * @param bulkUpdateFields The store of metadata related to each field * @param logError The error logger to log errors to * @returns */ export declare const handleStringFields: (update: UpdateRecord, key: keyof StringFields, updateAsRecord: Partial, bulkUpdateFields: LessonUpdateFields, logError: ErrorLogger) => void; /** * Parses the updates from the CSV file, converting them into a format that can be used to update the database. * * @param updates The updates to parse * @param currentRecords The current records to compare against * @param bulkUpdateFields The store of metadata related to each field * @param conversionMaps The maps to convert IDs to text * @returns The errors and parsed updates */ export declare const parseUpdates: (updates: UpdateRecord[], currentRecords: Map, bulkUpdateFields: LessonUpdateFields, conversionMaps: { guidanceMap: Map; tagMap: Map; tagIdToTextMap: Map; guidanceIdToTextMap: Map; }) => { hasError: boolean; errors: import("./types/parsingTypes").LessonExportErrors; parsedUpdates: Partial[]; }; //# sourceMappingURL=parseUpdates.d.ts.map