@dcoffey/espells
Version:
Pure JS/TS spellchecker, using Hunspell dictionaries. Based on Spylls.
19 lines (18 loc) • 667 B
TypeScript
import type { Flags } from "../aff/index.js";
export type LKFlagsOpts = {
prefix?: Flags;
suffix?: Flags;
forbidden?: Flags;
};
/** Context object for handling a {@link AffixForm} decomposing state. */
export declare class LKFlags {
/** The set of prefix flags currently in the state. */
prefix: Flags;
/** The set of suffix flags currently in the state. */
suffix: Flags;
/** A set of flags that invalidates {@link AffixForm}s if they have one of them. */
forbidden: Flags;
constructor(flags?: LKFlagsOpts);
replace(flags: LKFlagsOpts): LKFlags;
static from(prefix: Flags, suffix: Flags, forbidden: Flags): LKFlags;
}