import { CompilerCallbacks } from '@keymanapp/developer-utils'; import { Osk } from '@keymanapp/kmc-kmn'; /** * @public * Rewrite On Screen Keyboard files (.kvks, .keyman-touch-layout) with PUA * codepoints, based on analysis provided by {@link AnalyzeOskCharacterUse} * class. */ export declare class AnalyzeOskRewritePua { private callbacks; private _data; constructor(callbacks: CompilerCallbacks); /** * Clears data collected from previous calls to * {@link AnalyzeOskRewritePua.analyze} */ clear(): void; /** * Analyze a keyboard file or files, and provide a remapped output. Accepts a * .kmn, .kvks, .keyman-touch-layout file formats. For .kmn, will rewrite * associated On Screen Keyboard file formats. Can be called multiple times to * rewrite multiple files. Use the {@link AnalyzeOskRewritePua.data} property * to retrieve the output file content for writing. This does not modify the * source file. * @param file - relative or absolute path to a Keyman source file * @param mapping - OSK keycap map provided by {@link AnalyzeOskCharacterUse} * @returns true if the file is successfully loaded and rewritten */ analyze(file: string, mapping: Osk.StringResult[]): Promise; /** * Returns the file data for OSK files rewritten with PUA characters, for use * with `&displayMap`. */ get data(): { [index: string]: Uint8Array; }; private analyzeKmnKeyboard; private analyzeVisualKeyboard; private analyzeTouchLayout; } //# sourceMappingURL=index.d.ts.map