import type { AdapterResult, TokenFeatures, XPOS } from '@interslavic/conllu'; /** * One person of the present tense, with what its readings differ in already * named. Everything else in a verb's paradigm is still a display string; those * cells have no alternatives to tell apart. */ export type VerbCell = Array<{ form: string; feats?: TokenFeatures; }>; /** * A tense the tables print as a phrase: the six persons, then the feminine and * neuter repeats, and for a reflexive verb the tail that carries `sę`. */ type Compound = [ string, string, string, string, string, string, string, string, string? ]; export type VerbParadigm = { infinitive: VerbCell; present: VerbCell[]; imperfect: VerbCell[]; imperative: VerbCell[]; /** * The `-l` participle on its own, which the compound past, the pluperfect * and the conditional all build on. The tables only ever print it inside those * phrases — `(je) dělal`, `byh dělal(a)` — so a consumer that wants the * participle had to cut it back out of the sentence. */ lparticiple: VerbCell; perfect: Compound; pluperfect: Compound; conditional: Compound; future: [string, string, string, string, string, string]; /** Present active participle, derived from imperfective verbs. */ prap: Participle | undefined; /** Present passive participle (uncommon). */ prpp: Participle | undefined; /** Past active participle, derived from perfective verbs. */ pfap: Participle | undefined; /** Past passive participle (bookish). */ pfpp: Participle | undefined; gerund: string; }; export declare function conjugateVerb(rawInf: string, rawPts: string, partOfSpeech?: string): VerbParadigm | null; /** * Every participle is one stem plus a gendered ending, and both the display * cell and the lemma fall out of the same three forms. */ export interface Participle { display: string; citation: string; } export declare function inflectVerb(word: string, xpos: XPOS, irregular?: string): AdapterResult<'VERB' | 'AUX'>; export {};