import type { IKeyboardLayoutInfo, IKeyboardMapping } from 'native-keymap';
import { Event } from '../event.js';
export declare const keyboardPath = "/services/keyboard";
export declare const KeyboardLayoutProvider: unique symbol;
export type KeyboardLayoutSource = 'navigator.keyboard' | 'user-choice' | 'pressed-keys' | 'native-keymap';
export interface KeyboardLayoutProvider {
    getNativeLayout(): Promise<NativeKeyboardLayout>;
    readonly layoutSource?: KeyboardLayoutSource;
}
export declare const KeyboardLayoutChangeNotifier: unique symbol;
export interface KeyboardLayoutChangeNotifier {
    onDidChangeNativeLayout: Event<NativeKeyboardLayout>;
}
export interface KeyValidationInput {
    code: string;
    character: string;
    shiftKey?: boolean;
    ctrlKey?: boolean;
    altKey?: boolean;
    /**
     * Whether the AltGr layer is active for the platform (Linux: AltGraph, macOS: Option, Windows: AltGraph or Ctrl+Alt),
     * not the raw `AltGraph` modifier state.
     */
    altGraph?: boolean;
}
export declare const KeyValidator: unique symbol;
export interface KeyValidator {
    validateKey(input: KeyValidationInput): void;
}
export interface NativeKeyboardLayout {
    info: IKeyboardLayoutInfo;
    mapping: IKeyboardMapping;
}
//# sourceMappingURL=keyboard-layout-provider.d.ts.map