import { KeyAddress } from "../kmw-compiler/validate-layout-file.js";
import { CompilerEvent } from "@keymanapp/developer-utils";
export declare const enum KmnCompilerMessageRanges {
    RANGE_KMN_COMPILER_MIN = 1,// from kmn_compiler_errors.h
    RANGE_KMN_COMPILER_MAX = 2047,// from kmn_compiler_errors.h
    RANGE_LEXICAL_MODEL_MIN = 2048,// from kmn_compiler_errors.h, deprecated -- this range will not be used in future versions
    RANGE_LEXICAL_MODEL_MAX = 2303,// from kmn_compiler_errors.h, deprecated -- this range will not be used in future versions
    RANGE_CompilerMessage_Min = 2304,// All compiler messages listed here must be >= this value
    RANGE_CompilerMessage_Max = 4095
}
export declare function keyAddress(address: KeyAddress): string;
type KmcmpLibMessageParameters = {
    p: string[];
};
/**
 * @internal
 *
 * Error messages reported by the .kmn compiler. The error codes in this class
 * share an address space with messages from kmn_compiler_errors.h, which are
 * generated by kmcmplib, so codes below 0x900 are reserved for kmcmplib
 * messages.
 *
 * The second half of this class defines the messages from kmcmplib. These
 * messages should correspond to codes in kmn_compiler_errors.h, exclusive
 * severity bits. Message text is defined by kmcmplib and passed through a
 * callback at this time. The message text presented here is currently unused
 * during the compilation process, but is used in the `kmc messages` tool and
 * for documentation.
 *
 * `CERR_` messages that are actually fatals have been renamed to `FATAL_`.
 *
 * @example
 *
 * ```
 *   kmcmplib.CERR_BadCallParams = CERR_FATAL | 0x002 = 0x8002
 *   ERROR_BadCallParams = SevError | 0x0002 = 0x300000 | 0x2000 | 0x002 = 0x302002
 * ```
 */
export declare class KmnCompilerMessages {
    static FATAL_UnexpectedException: number;
    static Fatal_UnexpectedException: (o: {
        e: any;
    }) => CompilerEvent;
    static FATAL_MissingWasmModule: number;
    static Fatal_MissingWasmModule: (o: {
        e?: any;
    }) => CompilerEvent;
    static FATAL_CallbacksNotSet: number;
    static Fatal_CallbacksNotSet: () => CompilerEvent;
    static FATAL_UnicodeSetOutOfRange: number;
    static Fatal_UnicodeSetOutOfRange: () => CompilerEvent;
    static ERROR_UnicodeSetHasStrings: number;
    static Error_UnicodeSetHasStrings: () => CompilerEvent;
    static ERROR_UnicodeSetHasProperties: number;
    static Error_UnicodeSetHasProperties: () => CompilerEvent;
    static ERROR_UnicodeSetSyntaxError: number;
    static Error_UnicodeSetSyntaxError: () => CompilerEvent;
    static ERROR_InvalidKvksFile: number;
    static Error_InvalidKvksFile: (o: {
        filename: string;
        e: any;
    }) => CompilerEvent;
    static WARN_InvalidVkeyInKvksFile: number;
    static Warn_InvalidVkeyInKvksFile: (o: {
        filename: string;
        invalidVkey: string;
    }) => CompilerEvent;
    static ERROR_InvalidDisplayMapFile: number;
    static Error_InvalidDisplayMapFile: (o: {
        filename: string;
        e: any;
    }) => CompilerEvent;
    static ERROR_InvalidKvkFile: number;
    static Error_InvalidKvkFile: (o: {
        filename: string;
        e: any;
    }) => CompilerEvent;
    static ERROR_FileNotFound: number;
    static Error_FileNotFound: (o: {
        filename: string;
    }) => CompilerEvent;
    static FATAL_BadCallParams: number;
    static Fatal_BadCallParams: () => CompilerEvent;
    static FATAL_CannotAllocateMemory: number;
    static Fatal_CannotAllocateMemory: () => CompilerEvent;
    static ERROR_InfileNotExist: number;
    static Error_InfileNotExist: () => CompilerEvent;
    static ERROR_CannotReadInfile: number;
    static Error_CannotReadInfile: () => CompilerEvent;
    static FATAL_SomewhereIGotItWrong: number;
    static Fatal_SomewhereIGotItWrong: () => CompilerEvent;
    static ERROR_InvalidToken: number;
    static Error_InvalidToken: () => CompilerEvent;
    static ERROR_InvalidBegin: number;
    static Error_InvalidBegin: () => CompilerEvent;
    static ERROR_InvalidName: number;
    static Error_InvalidName: () => CompilerEvent;
    static ERROR_InvalidVersion: number;
    static Error_InvalidVersion: () => CompilerEvent;
    static ERROR_InvalidLanguageLine: number;
    static Error_InvalidLanguageLine: () => CompilerEvent;
    static ERROR_LayoutButNoLanguage: number;
    static Error_LayoutButNoLanguage: () => CompilerEvent;
    static ERROR_InvalidLayoutLine: number;
    static Error_InvalidLayoutLine: () => CompilerEvent;
    static ERROR_NoVersionLine: number;
    static Error_NoVersionLine: () => CompilerEvent;
    static ERROR_InvalidGroupLine: number;
    static Error_InvalidGroupLine: () => CompilerEvent;
    static ERROR_InvalidStoreLine: number;
    static Error_InvalidStoreLine: () => CompilerEvent;
    static ERROR_InvalidCodeInKeyPartOfRule: number;
    static Error_InvalidCodeInKeyPartOfRule: () => CompilerEvent;
    static ERROR_InvalidDeadkey: number;
    static Error_InvalidDeadkey: () => CompilerEvent;
    static ERROR_InvalidValue: number;
    static Error_InvalidValue: () => CompilerEvent;
    static ERROR_ZeroLengthString: number;
    static Error_ZeroLengthString: () => CompilerEvent;
    static ERROR_TooManyIndexToKeyRefs: number;
    static Error_TooManyIndexToKeyRefs: () => CompilerEvent;
    static ERROR_UnterminatedString: number;
    static Error_UnterminatedString: () => CompilerEvent;
    static ERROR_InvalidAny: number;
    static Error_InvalidAny: () => CompilerEvent;
    static ERROR_StoreDoesNotExist: number;
    static Error_StoreDoesNotExist: () => CompilerEvent;
    static ERROR_InvalidIndex: number;
    static Error_InvalidIndex: () => CompilerEvent;
    static ERROR_InvalidOuts: number;
    static Error_InvalidOuts: () => CompilerEvent;
    static ERROR_InvalidUse: number;
    static Error_InvalidUse: () => CompilerEvent;
    static ERROR_GroupDoesNotExist: number;
    static Error_GroupDoesNotExist: () => CompilerEvent;
    static ERROR_VirtualKeyNotAllowedHere: number;
    static Error_VirtualKeyNotAllowedHere: () => CompilerEvent;
    static ERROR_InvalidSwitch: number;
    static Error_InvalidSwitch: () => CompilerEvent;
    static ERROR_NoTokensFound: number;
    static Error_NoTokensFound: () => CompilerEvent;
    static ERROR_InvalidLineContinuation: number;
    static Error_InvalidLineContinuation: () => CompilerEvent;
    static ERROR_LineTooLong: number;
    static Error_LineTooLong: () => CompilerEvent;
    static ERROR_InvalidCopyright: number;
    static Error_InvalidCopyright: () => CompilerEvent;
    static ERROR_CodeInvalidInThisSection: number;
    static Error_CodeInvalidInThisSection: () => CompilerEvent;
    static ERROR_InvalidMessage: number;
    static Error_InvalidMessage: () => CompilerEvent;
    static ERROR_InvalidLanguageName: number;
    static Error_InvalidLanguageName: () => CompilerEvent;
    static ERROR_InvalidBitmapLine: number;
    static Error_InvalidBitmapLine: () => CompilerEvent;
    static ERROR_CannotReadBitmapFile: number;
    static Error_CannotReadBitmapFile: () => CompilerEvent;
    static ERROR_IndexDoesNotPointToAny: number;
    static Error_IndexDoesNotPointToAny: () => CompilerEvent;
    static ERROR_ReservedCharacter: number;
    static Error_ReservedCharacter: () => CompilerEvent;
    static ERROR_InvalidCharacter: number;
    static Error_InvalidCharacter: () => CompilerEvent;
    static ERROR_InvalidCall: number;
    static Error_InvalidCall: () => CompilerEvent;
    static ERROR_CodeInvalidInKeyStore: number;
    static Error_CodeInvalidInKeyStore: () => CompilerEvent;
    static ERROR_CannotLoadIncludeFile: number;
    static Error_CannotLoadIncludeFile: () => CompilerEvent;
    static ERROR_60FeatureOnly_EthnologueCode: number;
    static Error_60FeatureOnly_EthnologueCode: () => CompilerEvent;
    static ERROR_60FeatureOnly_MnemonicLayout: number;
    static Error_60FeatureOnly_MnemonicLayout: () => CompilerEvent;
    static ERROR_60FeatureOnly_OldCharPosMatching: number;
    static Error_60FeatureOnly_OldCharPosMatching: () => CompilerEvent;
    static ERROR_60FeatureOnly_NamedCodes: number;
    static Error_60FeatureOnly_NamedCodes: () => CompilerEvent;
    static ERROR_60FeatureOnly_Contextn: number;
    static Error_60FeatureOnly_Contextn: () => CompilerEvent;
    static ERROR_501FeatureOnly_Call: number;
    static Error_501FeatureOnly_Call: () => CompilerEvent;
    static ERROR_InvalidNamedCode: number;
    static Error_InvalidNamedCode: () => CompilerEvent;
    static ERROR_InvalidSystemStore: number;
    static Error_InvalidSystemStore: () => CompilerEvent;
    static ERROR_60FeatureOnly_VirtualCharKey: number;
    static Error_60FeatureOnly_VirtualCharKey: () => CompilerEvent;
    static ERROR_VersionAlreadyIncluded: number;
    static Error_VersionAlreadyIncluded: () => CompilerEvent;
    static ERROR_70FeatureOnly: number;
    static Error_70FeatureOnly: () => CompilerEvent;
    static ERROR_80FeatureOnly: number;
    static Error_80FeatureOnly: () => CompilerEvent;
    static ERROR_InvalidIf: number;
    static Error_InvalidIf: () => CompilerEvent;
    static ERROR_InvalidReset: number;
    static Error_InvalidReset: () => CompilerEvent;
    static ERROR_InvalidSet: number;
    static Error_InvalidSet: () => CompilerEvent;
    static ERROR_InvalidSave: number;
    static Error_InvalidSave: () => CompilerEvent;
    static ERROR_InvalidEthnologueCode: number;
    static Error_InvalidEthnologueCode: () => CompilerEvent;
    static FATAL_CannotCreateTempfile: number;
    static Fatal_CannotCreateTempfile: () => CompilerEvent;
    static ERROR_90FeatureOnly_IfSystemStores: number;
    static Error_90FeatureOnly_IfSystemStores: () => CompilerEvent;
    static ERROR_IfSystemStore_NotFound: number;
    static Error_IfSystemStore_NotFound: () => CompilerEvent;
    static ERROR_90FeatureOnly_SetSystemStores: number;
    static Error_90FeatureOnly_SetSystemStores: () => CompilerEvent;
    static ERROR_SetSystemStore_NotFound: number;
    static Error_SetSystemStore_NotFound: () => CompilerEvent;
    static ERROR_90FeatureOnlyVirtualKeyDictionary: number;
    static Error_90FeatureOnlyVirtualKeyDictionary: () => CompilerEvent;
    static ERROR_NotSupportedInKeymanWebContext: number;
    static Error_NotSupportedInKeymanWebContext: (o: {
        line: number;
        code: String;
    }) => CompilerEvent;
    static ERROR_NotSupportedInKeymanWebOutput: number;
    static Error_NotSupportedInKeymanWebOutput: (o: {
        line: number;
        code: string;
    }) => CompilerEvent;
    static ERROR_NotSupportedInKeymanWebStore: number;
    static Error_NotSupportedInKeymanWebStore: (o: {
        code: string;
        store: string;
    }) => CompilerEvent;
    static ERROR_VirtualCharacterKeysNotSupportedInKeymanWeb: number;
    static Error_VirtualCharacterKeysNotSupportedInKeymanWeb: (o: {
        line: number;
    }) => CompilerEvent;
    static ERROR_VirtualKeysNotValidForMnemonicLayouts: number;
    static Error_VirtualKeysNotValidForMnemonicLayouts: (o: {
        line: number;
    }) => CompilerEvent;
    static ERROR_InvalidTouchLayoutFile: number;
    static Error_InvalidTouchLayoutFile: (o: {
        filename: string;
    }) => CompilerEvent;
    static ERROR_TouchLayoutInvalidIdentifier: number;
    static Error_TouchLayoutInvalidIdentifier: (o: {
        keyId: string;
        platformName: string;
        layerId: string;
        address: KeyAddress;
    }) => CompilerEvent;
    static ERROR_InvalidKeyCode: number;
    static Error_InvalidKeyCode: (o: {
        keyId: string;
    }) => CompilerEvent;
    static ERROR_90FeatureOnlyLayoutFile: number;
    static Error_90FeatureOnlyLayoutFile: () => CompilerEvent;
    static ERROR_90FeatureOnlyKeyboardVersion: number;
    static Error_90FeatureOnlyKeyboardVersion: () => CompilerEvent;
    static ERROR_KeyboardVersionFormatInvalid: number;
    static Error_KeyboardVersionFormatInvalid: () => CompilerEvent;
    static ERROR_ContextExHasInvalidOffset: number;
    static Error_ContextExHasInvalidOffset: () => CompilerEvent;
    static ERROR_90FeatureOnlyEmbedCSS: number;
    static Error_90FeatureOnlyEmbedCSS: () => CompilerEvent;
    static ERROR_90FeatureOnlyTargets: number;
    static Error_90FeatureOnlyTargets: () => CompilerEvent;
    static ERROR_ContextAndIndexInvalidInMatchNomatch: number;
    static Error_ContextAndIndexInvalidInMatchNomatch: () => CompilerEvent;
    static ERROR_140FeatureOnlyContextAndNotAnyWeb: number;
    static Error_140FeatureOnlyContextAndNotAnyWeb: () => CompilerEvent;
    static ERROR_ExpansionMustFollowCharacterOrVKey: number;
    static Error_ExpansionMustFollowCharacterOrVKey: () => CompilerEvent;
    static ERROR_VKeyExpansionMustBeFollowedByVKey: number;
    static Error_VKeyExpansionMustBeFollowedByVKey: () => CompilerEvent;
    static ERROR_CharacterExpansionMustBeFollowedByCharacter: number;
    static Error_CharacterExpansionMustBeFollowedByCharacter: () => CompilerEvent;
    static ERROR_VKeyExpansionMustUseConsistentShift: number;
    static Error_VKeyExpansionMustUseConsistentShift: () => CompilerEvent;
    static ERROR_ExpansionMustBePositive: number;
    static Error_ExpansionMustBePositive: () => CompilerEvent;
    static ERROR_CasedKeysMustContainOnlyVirtualKeys: number;
    static Error_CasedKeysMustContainOnlyVirtualKeys: () => CompilerEvent;
    static ERROR_CasedKeysMustNotIncludeShiftStates: number;
    static Error_CasedKeysMustNotIncludeShiftStates: () => CompilerEvent;
    static ERROR_CasedKeysNotSupportedWithMnemonicLayout: number;
    static Error_CasedKeysNotSupportedWithMnemonicLayout: () => CompilerEvent;
    static ERROR_CannotUseReadWriteGroupFromReadonlyGroup: number;
    static Error_CannotUseReadWriteGroupFromReadonlyGroup: () => CompilerEvent;
    static ERROR_StatementNotPermittedInReadonlyGroup: number;
    static Error_StatementNotPermittedInReadonlyGroup: () => CompilerEvent;
    static ERROR_OutputInReadonlyGroup: number;
    static Error_OutputInReadonlyGroup: () => CompilerEvent;
    static ERROR_NewContextGroupMustBeReadonly: number;
    static Error_NewContextGroupMustBeReadonly: () => CompilerEvent;
    static ERROR_PostKeystrokeGroupMustBeReadonly: number;
    static Error_PostKeystrokeGroupMustBeReadonly: () => CompilerEvent;
    static ERROR_DuplicateGroup: number;
    static Error_DuplicateGroup: (o: KmcmpLibMessageParameters) => CompilerEvent;
    static ERROR_DuplicateStore: number;
    static Error_DuplicateStore: (o: KmcmpLibMessageParameters) => CompilerEvent;
    static ERROR_RepeatedBegin: number;
    static Error_RepeatedBegin: () => CompilerEvent;
    static ERROR_VirtualKeyInContext: number;
    static Error_VirtualKeyInContext: () => CompilerEvent;
    static ERROR_OutsTooLong: number;
    static Error_OutsTooLong: () => CompilerEvent;
    static ERROR_ExtendedStringTooLong: number;
    static Error_ExtendedStringTooLong: () => CompilerEvent;
    static ERROR_VirtualKeyExpansionTooLong: number;
    static Error_VirtualKeyExpansionTooLong: () => CompilerEvent;
    static ERROR_CharacterRangeTooLong: number;
    static Error_CharacterRangeTooLong: () => CompilerEvent;
    static ERROR_NonBMPCharactersNotSupportedInKeySection: number;
    static Error_NonBMPCharactersNotSupportedInKeySection: () => CompilerEvent;
    static ERROR_InvalidTarget: number;
    static Error_InvalidTarget: (o: KmcmpLibMessageParameters) => CompilerEvent;
    static ERROR_NoTargetsSpecified: number;
    static Error_NoTargetsSpecified: () => CompilerEvent;
    static WARN_TooManyWarnings: number;
    static Warn_TooManyWarnings: () => CompilerEvent;
    static WARN_OldVersion: number;
    static Warn_OldVersion: () => CompilerEvent;
    static WARN_BitmapNotUsed: number;
    static Warn_BitmapNotUsed: () => CompilerEvent;
    static WARN_CustomLanguagesNotSupported: number;
    static Warn_CustomLanguagesNotSupported: () => CompilerEvent;
    static WARN_KeyBadLength: number;
    static Warn_KeyBadLength: () => CompilerEvent;
    static WARN_IndexStoreShort: number;
    static Warn_IndexStoreShort: () => CompilerEvent;
    static WARN_UnicodeInANSIGroup: number;
    static Warn_UnicodeInANSIGroup: () => CompilerEvent;
    static WARN_ANSIInUnicodeGroup: number;
    static Warn_ANSIInUnicodeGroup: () => CompilerEvent;
    static WARN_UnicodeSurrogateUsed: number;
    static Warn_UnicodeSurrogateUsed: () => CompilerEvent;
    static WARN_ReservedCharacter: number;
    static Warn_ReservedCharacter: () => CompilerEvent;
    static INFO_MinimumCoreEngineVersion: number;
    static Info_MinimumCoreEngineVersion: (o: KmcmpLibMessageParameters) => CompilerEvent;
    static WARN_VirtualKeyWithMnemonicLayout: number;
    static Warn_VirtualKeyWithMnemonicLayout: () => CompilerEvent;
    static WARN_VirtualCharKeyWithPositionalLayout: number;
    static Warn_VirtualCharKeyWithPositionalLayout: () => CompilerEvent;
    static WARN_StoreAlreadyUsedAsOptionOrCall: number;
    static Warn_StoreAlreadyUsedAsOptionOrCall: () => CompilerEvent;
    static WARN_StoreAlreadyUsedAsStoreOrCall: number;
    static Warn_StoreAlreadyUsedAsStoreOrCall: () => CompilerEvent;
    static WARN_StoreAlreadyUsedAsStoreOrOption: number;
    static Warn_StoreAlreadyUsedAsStoreOrOption: () => CompilerEvent;
    static WARN_PunctuationInEthnologueCode: number;
    static Warn_PunctuationInEthnologueCode: () => CompilerEvent;
    static WARN_TouchLayoutMissingLayer: number;
    static Warn_TouchLayoutMissingLayer: (o: {
        keyId: string;
        platformName: string;
        layerId: string;
        nextLayer: string;
        address: KeyAddress;
    }) => CompilerEvent;
    static WARN_TouchLayoutCustomKeyNotDefined: number;
    static Warn_TouchLayoutCustomKeyNotDefined: (o: {
        keyId: string;
        platformName: string;
        layerId: string;
        address: KeyAddress;
    }) => CompilerEvent;
    static WARN_TouchLayoutMissingRequiredKeys: number;
    static Warn_TouchLayoutMissingRequiredKeys: (o: {
        layerId: string;
        platformName: string;
        missingKeys: string;
    }) => CompilerEvent;
    static WARN_HelpFileMissing: number;
    static Warn_HelpFileMissing: (o: {
        line: number;
        helpFilename: string;
        e: any;
    }) => CompilerEvent;
    static WARN_EmbedJsFileMissing: number;
    static Warn_EmbedJsFileMissing: (o: {
        line: number;
        jsFilename: string;
        e: any;
    }) => CompilerEvent;
    static WARN_ExtendedShiftFlagsNotSupportedInKeymanWeb: number;
    static Warn_ExtendedShiftFlagsNotSupportedInKeymanWeb: (o: {
        line: number;
        flags: string;
    }) => CompilerEvent;
    static WARN_TouchLayoutUnidentifiedKey: number;
    static Warn_TouchLayoutUnidentifiedKey: (o: {
        layerId: string;
        address: KeyAddress;
    }) => CompilerEvent;
    static HINT_UnreachableKeyCode: number;
    static Hint_UnreachableKeyCode: (o: {
        line: number;
        key: string;
    }) => CompilerEvent;
    static WARN_PlatformNotInTargets: number;
    static Warn_PlatformNotInTargets: () => CompilerEvent;
    static WARN_HeaderStatementIsDeprecated: number;
    static Warn_HeaderStatementIsDeprecated: () => CompilerEvent;
    static WARN_UseNotLastStatementInRule: number;
    static Warn_UseNotLastStatementInRule: () => CompilerEvent;
    static WARN_TouchLayoutFontShouldBeSameForAllPlatforms: number;
    static Warn_TouchLayoutFontShouldBeSameForAllPlatforms: () => CompilerEvent;
    static WARN_KVKFileIsInSourceFormat: number;
    static Warn_KVKFileIsInSourceFormat: () => CompilerEvent;
    static WARN_DontMixChiralAndNonChiralModifiers: number;
    static Warn_DontMixChiralAndNonChiralModifiers: () => CompilerEvent;
    static WARN_MixingLeftAndRightModifiers: number;
    static Warn_MixingLeftAndRightModifiers: () => CompilerEvent;
    static WARN_LanguageHeadersDeprecatedInKeyman10: number;
    static Warn_LanguageHeadersDeprecatedInKeyman10: () => CompilerEvent;
    static HINT_NonUnicodeFile: number;
    static Hint_NonUnicodeFile: () => CompilerEvent;
    static WARN_HotkeyHasInvalidModifier: number;
    static Warn_HotkeyHasInvalidModifier: () => CompilerEvent;
    static WARN_TouchLayoutSpecialLabelOnNormalKey: number;
    static Warn_TouchLayoutSpecialLabelOnNormalKey: (o: {
        keyId: string;
        platformName: string;
        layerId: string;
        label: string;
        address: KeyAddress;
    }) => CompilerEvent;
    static WARN_OptionStoreNameInvalid: number;
    static Warn_OptionStoreNameInvalid: (o: {
        name: string;
    }) => CompilerEvent;
    static WARN_NulNotFirstStatementInContext: number;
    static Warn_NulNotFirstStatementInContext: () => CompilerEvent;
    static WARN_IfShouldBeAtStartOfContext: number;
    static Warn_IfShouldBeAtStartOfContext: () => CompilerEvent;
    static WARN_KeyShouldIncludeNCaps: number;
    static Warn_KeyShouldIncludeNCaps: () => CompilerEvent;
    static HINT_UnreachableRule: number;
    static Hint_UnreachableRule: (o: KmcmpLibMessageParameters) => CompilerEvent;
    static WARN_VirtualKeyInOutput: number;
    static Warn_VirtualKeyInOutput: () => CompilerEvent;
    static HINT_IndexStoreLong: number;
    static Hint_IndexStoreLong: () => CompilerEvent;
    static ERROR_ContextExCannotReferenceIf: number;
    static Error_ContextExCannotReferenceIf: () => CompilerEvent;
    static ERROR_ContextExCannotReferenceNul: number;
    static Error_ContextExCannotReferenceNul: () => CompilerEvent;
    static ERROR_TextBeforeOrAfterNulInOutput: number;
    static Error_TextBeforeOrAfterNulInOutput: () => CompilerEvent;
    static FATAL_BufferOverflow: number;
    static Fatal_BufferOverflow: () => CompilerEvent;
}
export {};
//# sourceMappingURL=kmn-compiler-messages.d.ts.map