export type CutoffEntry = {
    code: string;
    dept: string;
    name: string;
    loc: string;
    cutoff: number;
    xingce?: number;
    shenlun?: number;
};
export type ApplyEntry = {
    code: string;
    dept: string;
    name: string;
    loc: string;
    applicants?: number;
    ratio?: string;
};
export type ScoreFile = {
    province: string;
    year: number;
    scoring_note: string;
    tier_lines: string;
    cutoffs: CutoffEntry[];
    applicants: ApplyEntry[];
};
export type ScoreIndexEntry = {
    slug: string;
    province: string;
    year: number;
    cutoffs: number;
    applicants: number;
    has_tier: boolean;
};
/** 省份名/拼音/代码 → slug(拼音)。 */
export declare function provinceToSlug(input: string): string | null;
export declare function loadScoreIndex(): ScoreIndexEntry[];
/** 加载某省某年的参考数据；year 省略时取该省最新可用年份。 */
export declare function loadScore(slug: string, year?: number): ScoreFile | null;
export declare function scoreYears(slug: string): number[];
/** 含某类数据(进面分/报名)的最新年份——进面分与报名常分属不同年份。 */
export declare function latestYearWith(slug: string, kind: "cutoffs" | "applicants"): number | undefined;
/** 进面分统计(min/中位/max)。 */
export declare function cutoffStats(cutoffs: CutoffEntry[]): {
    count: number;
    min: number;
    median: number;
    max: number;
} | null;
