UNPKG

942 BTypeScriptView Raw
1import type { IKeyboardLayoutInfo, IKeyboardMapping } from 'native-keymap';
2import { Event } from '../event';
3export declare const keyboardPath = "/services/keyboard";
4export declare const KeyboardLayoutProvider: unique symbol;
5export interface KeyboardLayoutProvider {
6 getNativeLayout(): Promise<NativeKeyboardLayout>;
7}
8export declare const KeyboardLayoutChangeNotifier: unique symbol;
9export interface KeyboardLayoutChangeNotifier {
10 onDidChangeNativeLayout: Event<NativeKeyboardLayout>;
11}
12export interface KeyValidationInput {
13 code: string;
14 character: string;
15 shiftKey?: boolean;
16 ctrlKey?: boolean;
17 altKey?: boolean;
18}
19export declare const KeyValidator: unique symbol;
20export interface KeyValidator {
21 validateKey(input: KeyValidationInput): void;
22}
23export interface NativeKeyboardLayout {
24 info: IKeyboardLayoutInfo;
25 mapping: IKeyboardMapping;
26}
27//# sourceMappingURL=keyboard-layout-provider.d.ts.map
\No newline at end of file