UNPKG

@keymanapp/kmc-model

Version:

Keyman Developer lexical model compiler

65 lines 2.28 kB
import { CompilerEvent } from "@keymanapp/developer-utils"; /** * @internal */ export declare class ModelCompilerMessageContext { static line: number; static filename: string; } /** * @internal */ export declare class ModelCompilerMessages { static FATAL_UnexpectedException: number; static Fatal_UnexpectedException: (o: { e: any; }) => CompilerEvent; static HINT_MixedNormalizationForms: number; static Hint_MixedNormalizationForms: (o: { wordform: string; }) => CompilerEvent; static HINT_DuplicateWordInSameFile: number; static Hint_DuplicateWordInSameFile: (o: { wordform: string; }) => CompilerEvent; static ERROR_UnimplementedModelFormat: number; static Error_UnimplementedModelFormat: (o: { format: string; }) => CompilerEvent; static ERROR_UnknownModelFormat: number; static Error_UnknownModelFormat: (o: { format: string; }) => CompilerEvent; static ERROR_NoDefaultExport: number; static Error_NoDefaultExport: () => CompilerEvent; static ERROR_SearchTermToKeyMustBeExplicitlySpecified: number; static Error_SearchTermToKeyMustBeExplicitlySpecified: () => CompilerEvent; static ERROR_UTF16BEUnsupported: number; static Error_UTF16BEUnsupported: () => CompilerEvent; static ERROR_UnknownWordBreaker: number; static Error_UnknownWordBreaker: (o: { spec: string; }) => CompilerEvent; static ERROR_UnsupportedScriptOverride: number; static Error_UnsupportedScriptOverride: (o: { option: string; }) => CompilerEvent; static ERROR_ModelFileNotFound: number; static Error_ModelFileNotFound: (o: { filename: string; }) => CompilerEvent; static ERROR_WordlistFileNotFound: number; static Error_WordlistFileNotFound: (o: { filename: string; }) => CompilerEvent; } /** * A ModelCompilerError should be thrown when an unrecoverable error occurs that * would block further compilation. It will be caught in the top-most compiler * API endpoint and converted into a callback message. */ export declare class ModelCompilerError extends Error { event: CompilerEvent; constructor(event: CompilerEvent); } //# sourceMappingURL=model-compiler-messages.d.ts.map