import { type CorpusSourceInputs } from "#source-register/corpus-inputs"; import type { TrainingManifest } from "#source-register/training-manifest"; import type { AddressSourceRegister } from "#source-register/types"; /** * The fields of a frozen collection the audit reads: its id, the corpus it was drawn from, * and the corpus source ids among its rows. */ export interface FrozenDatasetSources { datasetID: string; corpusVersion: string | null; sources: readonly string[]; } /** * The fields of a training manifest the audit reads. */ export type TrainingManifestSources = Pick & { sources: ReadonlyArray>; }; /** * Each register source the corpus sources read, with the record that names it. */ interface RegisterSourceReaders { readers: Map>; unmapped: string[]; } /** * Every register source a training manifest read, with the corpus versions that read it. * * `unmapped` lists each corpus source a manifest names that the table doesn't map. */ export declare function trainedRegisterSources(manifests: readonly TrainingManifestSources[], inputs: CorpusSourceInputs): RegisterSourceReaders; /** * One message for each reservation the training and held-out records contradict. * * A corpus source a record names that the table doesn't map is a problem only * where it could hide a contradiction: for a training manifest when any source is reserved, * and for a held-out dataset when any reservation is lifted. */ export declare function auditReservationHistory(register: { sources: ReadonlyArray>; }, records: { inputs: CorpusSourceInputs; trainingManifests: readonly TrainingManifestSources[]; heldoutDatasets: readonly FrozenDatasetSources[]; }): string[]; /** * Reads every committed frozen training manifest, `packages/corpus/data/training-manifests/.json`. * * An effective manifest (`*.effective.json`) records an epoch's draw rather than a corpus and isn't read. */ export declare function readCommittedTrainingManifests(): Promise; export {}; //# sourceMappingURL=reservations.d.ts.map