export interface ModelParam { modelToUse: string; threshold: number; bufferCount: number; onKeywordDetected: (result: { prediction: number; model: string; cntBuf: number; }) => void; } export class KeywordDetector { constructor( modelsFolderPath: string, modelParams: ModelParam[] | string, wasmBasePath: string, audioWorkletPath: string ); setLicense(licenseKey: string): Promise; init(): Promise; startListening(): void; stopListening(): void; }