import { type CorpusSourceInputs, type SourceRightsRecord } from "#source-register/corpus-inputs"; import type { AddressSourceRegister } from "#source-register/types"; import type { TrainingConfig } from "#training/config/schema"; /** * The corpus sources a config admits: every positive `source_weights` or `source_reps` key, * plus any source listed in `tier1_sources`, sorted. * * A config without `source_weights` admits every source its corpus holds and lists none of them. */ export declare function admittedTrainingSources(config: TrainingConfig): string[]; /** * The register and corpus-source table an admission reads, when a caller has read them already. */ export interface TrainingAdmissionInputs { register: AddressSourceRegister; inputs: CorpusSourceInputs; } /** * Options for {@linkcode admitTrainingConfig}. */ export interface AdmitTrainingConfigOptions { /** * Names the config in a refusal, as `training config v7.2.0-address-systems-60k.yaml`. */ context: string; /** * The committed register and table are read when omitted. */ rights?: TrainingAdmissionInputs; log?: (line: string) => void; } /** * Refuses a config that admits a source lacking a transform and train permission, * as `load_training_config` does. * * `data.unshippable_reason` admits the rest for a local experiment, and the record then reads not shippable. * A config without `source_weights` names no source to check, so it is refused unless that reason is set. * * @throws {SourceRightsError} naming each source, register row and missing permission. */ export declare function admitTrainingConfig(config: TrainingConfig, options: AdmitTrainingConfigOptions): Promise; //# sourceMappingURL=admission.d.ts.map