UNPKG

@notios/config

Version:
74 lines (73 loc) 3.87 kB
import { NotiosCommonAction, NotiosHelpAction, NotiosInspectProcAction, NotiosSelectScriptAction, NotiosTreeProcsAction } from '../action_definitions'; declare type NotiosConfigKeymappingSpecialNoMod = { type: 'special'; special: 'upWheel' | 'downWheel' | 'return' | 'backspace' | 'delete'; shift?: false; ctrl?: false; }; declare type NotiosConfigKeymappingSpecialShiftOnly = { type: 'special'; special: 'tab'; shift?: boolean; ctrl?: false; }; declare type NotiosConfigKeymappingSpecialCtrlShift = { type: 'special'; special: 'pageUp' | 'pageDown' | 'downArrow' | 'upArrow' | 'rightArrow' | 'leftArrow' | 'home' | 'end'; shift?: boolean; ctrl?: boolean; }; export declare type NotiosConfigKeymappingSpecial = NotiosConfigKeymappingSpecialNoMod | NotiosConfigKeymappingSpecialShiftOnly | NotiosConfigKeymappingSpecialCtrlShift; export declare type SpecialKeyName = NotiosConfigKeymappingSpecial['special']; export declare type NotiosConfigKeymappingChar = { type: 'char'; char: '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | 'a' | 'b' | 'c' | 'd' | 'e' | 'f' | 'g' | 'h' | 'i' | 'j' | 'k' | 'l' | 'm' | 'n' | 'o' | 'p' | 'q' | 'r' | 's' | 't' | 'u' | 'v' | 'w' | 'x' | 'y' | 'z' | '!' | '@' | '#' | '$' | '%' | '^' | '&' | '*' | '(' | ')' | '_' | '-' | '+' | '|' | '=' | '\\' | '"' | "'" | '[' | ']' | '/' | '.' | ',' | '{' | '}' | '<' | '>' | '?' | ':' | ';' | '`' | '~' | ' '; shift?: boolean; ctrl?: boolean; meta?: boolean; }; export declare type NotiosConfigKeymappingSeq = { type: 'seq'; seq: Array<NotiosConfigKeymappingSpecial | NotiosConfigKeymappingChar>; shift?: boolean; ctrl?: boolean; meta?: boolean; }; export declare type NotiosConfigKeymapping = NotiosConfigKeymappingSpecial | NotiosConfigKeymappingChar; export declare type NotiosConfigKeymappingRoot = NotiosConfigKeymappingSpecial | NotiosConfigKeymappingChar | NotiosConfigKeymappingSeq; export declare type NotiosConfigActionKeymapping = ReadonlyArray<NotiosConfigKeymappingRoot>; declare const notiosConfigV1KeymappingSymbol: unique symbol; declare const notiosConfigV1KeymappingCommonSymbol: unique symbol; declare const notiosConfigV1KeymappingInspectProcSymbol: unique symbol; declare const notiosConfigV1KeymappingTreeProcsSymbol: unique symbol; declare const notiosConfigV1KeymappingSelectScriptSymbol: unique symbol; declare const notiosConfigV1KeymappingHelpSymbol: unique symbol; declare type NotiosConfigV1Keymapping = { [notiosConfigV1KeymappingSymbol]: unknown; common: Record<NotiosCommonAction | typeof notiosConfigV1KeymappingCommonSymbol, NotiosConfigActionKeymapping>; 'inspect-proc': Record<NotiosInspectProcAction | typeof notiosConfigV1KeymappingInspectProcSymbol, NotiosConfigActionKeymapping>; 'tree-procs': Record<NotiosTreeProcsAction | typeof notiosConfigV1KeymappingTreeProcsSymbol, NotiosConfigActionKeymapping>; 'select-script': Record<NotiosSelectScriptAction | typeof notiosConfigV1KeymappingSelectScriptSymbol, NotiosConfigActionKeymapping>; help: Record<NotiosHelpAction | typeof notiosConfigV1KeymappingHelpSymbol, NotiosConfigActionKeymapping>; }; declare const notiosConfigV1Symbol: unique symbol; export declare type NotiosConfigV1 = { [notiosConfigV1Symbol]: unknown; keymappings: NotiosConfigV1Keymapping; paragraphSize: number; wordSize: number; showTimestampByDefault: boolean; showLabelByDefault: boolean; showScriptCommandInSelectScript: boolean; showScriptCommandInTreeProcs: boolean; enableUnreadMarker: boolean; enableTimeElapseGradationBar: boolean; historyAlwaysKeepHeadSize: number; historyCacheSize: number; }; declare const notiosConfigSymbol: unique symbol; export declare type NotiosConfig = { [notiosConfigSymbol]: unknown; v1: NotiosConfigV1; }; export {};