export namespace SERVICE { const API: string; const BOT: string; const CLIENT: string; const DESKTOP: string; const MOBILE: string; const SERVER: string; const WEB: string; } /** * COMMON ACTION CONSTANTS ===================================================== * ============================================================================= */ export const ACTION_SEPARATOR: " -> "; export const RESULT_SEPARATOR: ":"; export const SYSTEM: "SYSTEM"; export const GET: "GET"; export const CREATE: "CREATE"; export const UPDATE: "UPDATE"; export const DELETE: "DELETE"; export const LIST: "LIST"; export const SET: "SET"; export const RESET: "RESET"; export const REFRESH: "REFRESH"; export const HYDRATE: "HYDRATE"; export const LOGIN: "LOGIN"; export const LOGOUT: "LOGOUT"; export const LOAD: "LOAD"; export const ALERT: "ALERT"; export const SAVE: "SAVE"; export const EDIT: "EDIT"; export const OPEN: "OPEN"; export const CLOSE: "CLOSE"; export const SEARCH: "SEARCH"; export const SUBMIT: "SUBMIT"; export const ADD: "ADD"; export const APPLY: "APPLY"; export const CHANGE: "CHANGE"; export const COPY: "COPY"; export const REMOVE: "REMOVE"; export const REPORT: "REPORT"; export const PREFETCH: "PREFETCH"; export const PRESET: "PRESET"; export const PRE_ADD: "PRE_ADD"; export const PRE_REMOVE: "PRE_REMOVE"; export const SELECT: "SELECT"; export const TOGGLE: "TOGGLE"; export const START: "START"; export const CANCEL: "CANCEL"; export const FINISH: "FINISH"; export const RECEIVED: "RECEIVED"; export const VOID: "VOID"; export const SEND: "SEND"; export const SUBSCRIBE: "SUBSCRIBE"; export const UNSUBSCRIBE: "UNSUBSCRIBE"; export const CONNECTED: "CONNECTED"; export const DISCONNECTED: "DISCONNECTED"; export const MESSAGE: "MESSAGE"; export const REQUEST: "REQUEST"; export const SUCCESS: "SUCCESS"; export const ERROR: "ERROR"; export const TIMEOUT: "TIMEOUT"; export const ALL_ACTIONS: string[]; export const ALL_RESULTS: string[]; export const isMacLike: boolean; /** * Map of Event.code as `key` ad Event.keyCode as `value`, followed by Event.key as comment. * * @notes: * - ignore recommendation from MDN to use .code instead .keyCode (as said to be deprecated), * because .code is poorly supported while .keyCode is on all browsers atm of writing. * https://caniuse.com/keyboardevent-code * https://caniuse.com/mdn-api_keyboardevent_keycode */ export const KEY: { UNDEFINED: number; LEFT_CLICK: number; MIDDLE_CLICK: number; RIGHT_CLICK: number; /** * Use the non-existing event.code 'Ctrl' when creating keyboard shortcuts, instead of KEY.Control * because of inconsistent behaviors for Ctrl/Control keys on Windows/macOS: * - Ctrl: `event.ctrlKey === true`, `event.metaKey === false`, `keyCode === 17` in Windows * - ⌘: `event.ctrlKey === false`, `event.metaKey === true`, `keyCode === (91 || 93)` in macOS * - `-17` is a non-existing `keyCode` value for internal logic check. * @see: `./keyboard.js` for reference of internal logic implementation. */ Ctrl: number; Cancel: number; Help: number; Backspace: number; Tab: number; Clear: number; Enter: number; ShiftLeft: number; ShiftRight: number; Shift: number; ControlLeft: number; ControlRight: number; Control: number; AltLeft: number; AltRight: number; Alt: number; Pause: number; CapsLock: number; Escape: number; Space: number; PageUp: number; PageDown: number; End: number; Home: number; ArrowLeft: number; ArrowUp: number; ArrowRight: number; ArrowDown: number; PrintScreen: number; Insert: number; Delete: number; Equal: number; Minus: number; /** * @note: Meta key is unreliable, it depends on the keyboard. For example, most online sources * report 92 as MetaRight, but when tested on MacBook Pro 16", it is 93. */ MetaLeft: number; MetaRight: number; _0: number; _1: number; _2: number; _3: number; _4: number; _5: number; _6: number; _7: number; _8: number; _9: number; 0: number; 1: number; 2: number; 3: number; 4: number; 5: number; 6: number; 7: number; 8: number; 9: number; Digit0: number; Digit1: number; Digit2: number; Digit3: number; Digit4: number; Digit5: number; Digit6: number; Digit7: number; Digit8: number; Digit9: number; a: number; b: number; c: number; d: number; e: number; f: number; g: number; h: number; i: number; j: number; k: number; l: number; m: number; n: number; o: number; p: number; q: number; r: number; s: number; t: number; u: number; v: number; w: number; x: number; y: number; z: number; KeyA: number; KeyB: number; KeyC: number; KeyD: number; KeyE: number; KeyF: number; KeyG: number; KeyH: number; KeyI: number; KeyJ: number; KeyK: number; KeyL: number; KeyM: number; KeyN: number; KeyO: number; KeyP: number; KeyQ: number; KeyR: number; KeyS: number; KeyT: number; KeyU: number; KeyV: number; KeyW: number; KeyX: number; KeyY: number; KeyZ: number; }; export const ONE_MM: 1; export const ONE_CM: number; export const ONE_METER: number; export const ONE_KM: number; export const ONE_INCH: number; export const ONE_FOOT: number; export const ONE_YARD: number; export const ONE_MILE: number; export const FORMAT_TIME: "YYYY-MM-DD hh:mm:ss"; export const FORMAT_TIME_FOR_HUMAN: "ddd, D MMM - hh:mm a"; export const FORMAT_DATE: "DD.MM.YYYY"; export const FORMAT_DATE_ISO: "YYYY-MM-DD"; export const FORMAT_HH_MM: "HH[:]mm"; export const FORMAT_DD_MMM: "D MMM"; export const FORMAT_DD_MMM_YYYY: "D MMM, YYYY"; export const FORMAT_MMM_YYYY: "MMM YYYY"; export namespace FORMAT_TIME_FOR_CLI_OPTS { const shorten: boolean; const round: boolean; const largest: number; const units: string[]; } export const ID: "{ID}"; export const SIZE_KB: 1024; export const SIZE_MB: number; export const SIZE_MB_2: number; export const SIZE_MB_4: number; export const SIZE_MB_5: number; export const SIZE_MB_6: number; export const SIZE_MB_8: number; export const SIZE_MB_10: number; export const SIZE_MB_16: number; export const UI_STATE: "UI_STATE"; export const TIME_DURATION_INSTANT: 200; export const ONE_MILLISECOND: 1; export const HALF_SECOND: 500; export const HALF_MINUTE: number; export const HALF_HOUR: number; export const ONE_SECOND: 1000; export const ONE_MINUTE: number; export const ONE_HALF_SECONDS: 1500; export const ONE_HOUR: number; export const ONE_DAY: number; export const ONE_WEEK: number; export const ONE_MONTH: number; export const ONE_YEAR: number; export const TWO_SECONDS: number; export const TWO_MINUTES: number; export const TWO_DAYS: number; export const TWO_WEEKS: number; export const TWO_MONTHS: number; export const THREE_SECONDS: number; export const THREE_MINUTES: number; export const FIVE_SECONDS: number; export const FIVE_MINUTES: number; export const FIVE_HOURS: number; export const SEVEN_SECONDS: number; export const SEVEN_MINUTES: number; export const TEN_SECONDS: number; export const TEN_MINUTES: number; export const THIRTY_SECONDS: number; export const THIRTY_MINUTES: number; export const FIFTEEN_MINUTES: number; export const FORTY_SECONDS: number; export const HUNDRED_SECONDS: number; export const HUNDRED_MINUTES: number; export namespace CRYPTO { const HMAC_SHA256: string; const HMAC_SHA384: string; const HMAC_SHA512: string; const MD5: string; } export namespace LANGUAGE { namespace ENGLISH { const _: string; const lang: string; const en: string; } namespace RUSSIAN { const __1: string; export { __1 as _ }; const lang_1: string; export { lang_1 as lang }; const en_1: string; export { en_1 as en }; } namespace CHINESE { const __2: string; export { __2 as _ }; const lang_2: string; export { lang_2 as lang }; const en_2: string; export { en_2 as en }; } namespace CHINESE_HK { const __3: string; export { __3 as _ }; const lang_3: string; export { lang_3 as lang }; const en_3: string; export { en_3 as en }; } namespace CHINESE_TW { const __4: string; export { __4 as _ }; const lang_4: string; export { lang_4 as lang }; const en_4: string; export { en_4 as en }; } namespace GERMAN { const __5: string; export { __5 as _ }; const lang_5: string; export { lang_5 as lang }; const en_5: string; export { en_5 as en }; } namespace SPANISH { const __6: string; export { __6 as _ }; const lang_6: string; export { lang_6 as lang }; const en_6: string; export { en_6 as en }; } namespace ITALIAN { const __7: string; export { __7 as _ }; const lang_7: string; export { lang_7 as lang }; const en_7: string; export { en_7 as en }; } namespace PORTUGUESE { const __8: string; export { __8 as _ }; const lang_8: string; export { lang_8 as lang }; const en_8: string; export { en_8 as en }; } namespace DUTCH { const __9: string; export { __9 as _ }; const lang_9: string; export { lang_9 as lang }; const en_9: string; export { en_9 as en }; } namespace FRENCH { const __10: string; export { __10 as _ }; const lang_10: string; export { lang_10 as lang }; const en_10: string; export { en_10 as en }; } namespace SWEDISH { const __11: string; export { __11 as _ }; const lang_11: string; export { lang_11 as lang }; const en_11: string; export { en_11 as en }; } namespace FINNISH { const __12: string; export { __12 as _ }; const lang_12: string; export { lang_12 as lang }; const en_12: string; export { en_12 as en }; } namespace GREEK { const __13: string; export { __13 as _ }; const lang_13: string; export { lang_13 as lang }; const en_13: string; export { en_13 as en }; } namespace KOREAN { const __14: string; export { __14 as _ }; const lang_14: string; export { lang_14 as lang }; const en_14: string; export { en_14 as en }; } namespace JAPANESE { const __15: string; export { __15 as _ }; const lang_15: string; export { lang_15 as lang }; const en_15: string; export { en_15 as en }; } namespace HEBREW { const __16: string; export { __16 as _ }; const lang_16: string; export { lang_16 as lang }; const en_16: string; export { en_16 as en }; } namespace PERSIAN { const __17: string; export { __17 as _ }; const lang_17: string; export { lang_17 as lang }; const en_17: string; export { en_17 as en }; } namespace YIDDISH { const __18: string; export { __18 as _ }; const lang_18: string; export { lang_18 as lang }; const en_18: string; export { en_18 as en }; } namespace ARABIC { const __19: string; export { __19 as _ }; const lang_19: string; export { lang_19 as lang }; const en_19: string; export { en_19 as en }; } namespace AFRIKAANS { const __20: string; export { __20 as _ }; const lang_20: string; export { lang_20 as lang }; const en_20: string; export { en_20 as en }; } } export namespace l { } export namespace LANGUAGE_LEVEL { namespace UNKNOWN { const __21: number; export { __21 as _ }; } namespace BASIC { const __22: number; export { __22 as _ }; } namespace WORKING { const __23: number; export { __23 as _ }; } namespace PROFICIENT { const __24: number; export { __24 as _ }; } namespace FLUENT { const __25: number; export { __25 as _ }; } namespace NATIVE { const __26: number; export { __26 as _ }; } } export const SORT_ORDER: { 0: string; 1: string; [-1]: string; }; export const PLUS: "✛"; export const MINUS: "╍"; export const DOT: "•"; export const CROSS: "✕"; export const CROSSMARK: "❌"; export const CHECK: "✓"; export const CHECKBOX: "✅"; export const HEART: "♥"; export const HEART_EXCLAMATION: "❣"; export const CLOVER: "☘"; export const RECYCLE: "♻️"; export const SPARKLES: "✨"; export const THUNDER: "⚡"; export const FIREWORK: "💥"; export const FIRE: "🔥"; export const ROCKET: "🚀"; export const BLOCK: "🚷"; export const CHICKEN: "🐣"; export const SKULL: "☠"; export const SPHERE: "🔮"; export const UNICORN: "🦄"; export const ATOMS: "⚛️"; export const WARN: "✋"; export const WORKER: "👷";