spiegel-keyman/developer/docs/api/etc/kmc-analyze.api.md
2024-02-27 12:06:11 +07:00

1.4 KiB

API Report File for "@keymanapp/kmc-analyze"

Do not edit this file. It is a report generated by API Extractor.


import { CompilerCallbacks } from '@keymanapp/common-types';
import { CompilerEvent } from '@keymanapp/common-types';
import { Osk } from '@keymanapp/developer-utils';

// @public
export class AnalyzeOskCharacterUse {
    constructor(callbacks: CompilerCallbacks, options?: AnalyzeOskCharacterUseOptions);
    analyze(file: string): Promise<boolean>;
    clear(): void;
    getStrings(format?: '.txt' | '.md' | '.json'): string[];
}

// @public
export interface AnalyzeOskCharacterUseOptions {
    includeCounts?: boolean;
    puaBase?: number;
    stripDottedCircle?: boolean;
}

// @public
export class AnalyzeOskRewritePua {
    constructor(callbacks: CompilerCallbacks);
    analyze(file: string, mapping: Osk.StringResult[]): Promise<boolean>;
    clear(): void;
    get data(): {
        [index: string]: Uint8Array;
    };
}

// @public
export class AnalyzerMessages {
    static readonly FATAL_UnexpectedException: number;
    // @internal (undocumented)
    static Fatal_UnexpectedException: (o: {
        e: any;
    }) => CompilerEvent;
    static readonly INFO_ScanningFile: number;
    // @internal (undocumented)
    static Info_ScanningFile: (o: {
        type: string;
        name: string;
    }) => CompilerEvent;
}