import { type PathBuilderLike } from "path-ts"; import { type CJKRecord } from "#cjk/builder"; /** * One aligned string with its hold-out unit, or `null` for a string that * didn't align, beside the typed text. */ type Candidate = readonly [aligned: readonly [record: CJKRecord, unit: string] | null, text: string]; /** * Options for {@linkcode buildRegistryCorpus}, matching the Python builder's flags. */ export interface RegistryCorpusOptions { locale: RegistryLocale; outDir: PathBuilderLike; rows: number; valFraction: number; boardRows: number; /** * Japan: the share of rows rendered with a 〒 prefix. */ postcodeFraction: number; rowsPerPart: number; statsSample: number; /** * A smoke build's key index reads up to `maxRowGroups` row groups. */ maxRowGroups?: number; seed: number; force: boolean; } /** * The nationwide corporate-number file the Japanese registry corpus reads: the 2026-08-31 snapshot. */ export declare function houjinZipPath(): import("path-ts").PathBuilder; /** * Each locale's source, hold-out bucket, output names and candidate stream. */ export declare const REGISTRY_LOCALES: { readonly jp: { readonly source: "houjin-jp"; readonly bucketMin: 97; readonly part: "jp-registry"; readonly board: "jp-registry-board.jsonl"; readonly vocab: "char-vocab-jp-registry.json"; readonly candidates: (options: RegistryCorpusOptions) => Promise<() => AsyncGenerator>; }; readonly tw: { readonly source: "gcis-tw"; readonly bucketMin: 90; readonly part: "tw-registry"; readonly board: "tw-registry-board.jsonl"; readonly vocab: "char-vocab-tw-registry.json"; readonly candidates: (options: RegistryCorpusOptions) => Promise<() => AsyncGenerator>; }; }; /** * A locale the registry builder reads. */ export type RegistryLocale = keyof typeof REGISTRY_LOCALES; /** * Builds the corpus, its board and its character vocabulary under `outDir`, and returns the build report. * * @throws When `outDir` holds files and `force` is unset, or a register input is missing. */ export declare function buildRegistryCorpus(options: RegistryCorpusOptions): Promise>; export {}; //# sourceMappingURL=registry.d.ts.map