import { type CJKRecord } from "#cjk/builder"; /** * The corpus source of a Chinese organizational-unit row that names none. */ export declare const CN_UNITS_SOURCE = "coarse-placer-cn-units"; /** * Every Chinese organizational-unit row uses this register. */ export declare const CN_UNITS_REGISTER = "cn-units"; /** * The JP corpus version the first overlay referenced. */ export declare const OVERLAY_JP_VERSION = "v8-jp-full-2026-08-04"; /** * The corpus source the JP parts are listed under. */ export declare const OVERLAY_JP_SOURCE = "overture-jp"; /** * One row of the `cn-organizational-units` recipe output. */ export interface CNUnitsRow { raw: string; tokens: string[]; labels: string[]; span_starts: number[]; span_ends: number[]; span_tags: string[]; source?: string | null; } /** * A recipe row as a CJK corpus record with country `CN` and register `cn-units`. */ export declare function toCNRecord(row: CNUnitsRow): CJKRecord; /** * The JP vocabulary's characters plus every character of `cnTexts`, sealed in code-point order. */ export declare function mergeCharVocab(jpVocab: Readonly>, cnTexts: Iterable): Map; /** * A corpus the overlay references by volume path. */ export interface OverlayExtraCorpus { directory: string; source: string; } /** * Options for {@linkcode buildCJKOverlay}. */ export interface CJKOverlayOptions { jpCorpus: string; cnTrain: string; cnVal: string; cnTest: string; outDir: string; /** * The directory the manifest's paths start from. */ volumeRoot: string; /** * @defaultValue {@linkcode OVERLAY_JP_VERSION} */ jpVersion?: string; force?: boolean; extraCorpora?: readonly OverlayExtraCorpus[]; } /** * Writes the overlay's parts, board, vocabulary, manifest and build report, and returns the report. * * @throws When `outDir` holds a file and `force` is unset, an input is missing or empty, * a part list is empty, or a Chinese row fails the `stage3-cjk` record check. */ export declare function buildCJKOverlay(options: CJKOverlayOptions): Promise>; //# sourceMappingURL=overlay.d.ts.map