import { Aff } from './aff.js'; import type { AffInfo, Fx } from './affDef.js'; import { Aff as AffLegacy } from './affLegacy.js'; export interface ConvEntry { from: string; to: string; } declare function tablePfxOrSfx(fieldValue: Afx | undefined, line: AffLine): Afx; interface AffixRule { type: 'PFX' | 'SFX'; flag: string; stripping: string; replace: RegExp; affix: string; condition: RegExp; extra?: string; } /** * `PFX|SFX flag stripping prefix [condition [morphological_fields...]]` */ declare function parseAffixRule(line: AffLine): AffixRule | undefined; export declare function parseAffFile(filename: string, encoding?: string): Promise; export declare function parseAff(affFileContent: string, encoding?: string): AffInfo; export declare function parseAffFileToAff(filename: string, encoding?: string): Promise; export declare function parseAffFileToAffLegacy(filename: string, encoding?: string): Promise; declare function parseLine(line: string): AffLine; export interface AffLine { option: string; value: string | undefined; } type Afx = Map; export declare const testing: { parseAffixRule: typeof parseAffixRule; tablePfxOrSfx: typeof tablePfxOrSfx; parseLine: typeof parseLine; }; export {}; //# sourceMappingURL=affReader.d.ts.map