import type { AdapterResult, TokenFeatures, XPOS } from '@interslavic/conllu'; import { type Noun } from '../../partOfSpeech/index.ts'; /** * One slot of a paradigm. Most hold a single form; the athematic classes hold * two, and then one belongs to the archaic declension and the other to the * ordinary one. Which is which follows from the branch that built the pair, so * the branch records it and nothing downstream has to work it out from the * forms. */ export type NounCell = Array<{ form: string; feats?: TokenFeatures; }>; /** The cases a noun paradigm holds, in the order the tables below build them. */ export declare const CASES: { readonly nom: 'Nom'; readonly acc: 'Acc'; readonly gen: 'Gen'; readonly loc: 'Loc'; readonly dat: 'Dat'; readonly ins: 'Ins'; readonly voc: 'Voc'; }; export type NounParadigm = { nom: [NounCell | null, NounCell | null]; acc: [NounCell | null, NounCell | null]; gen: [NounCell | null, NounCell | null]; loc: [NounCell | null, NounCell | null]; dat: [NounCell | null, NounCell | null]; ins: [NounCell | null, NounCell | null]; voc: [NounCell | null, NounCell | null]; }; export declare function declineNoun(rawNoun: string, rawAdd: string, originGender: Noun['gender'], animated: boolean, isPlural: boolean, isSingular: boolean, isIndeclinable: boolean): NounParadigm | null; type Gender = 'masculine' | 'feminine'; export declare function declineNounSimple(lemma: string, morphology: string, extra?: string, genderOverride?: Gender): NounParadigm | null; export declare function inflectNoun(word: string, xpos: XPOS, irregular?: string): AdapterResult<'NOUN' | 'PROPN'>; export {};