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<boolean>;
  init(): Promise<void>;
  startListening(): void;
  stopListening(): void;
}
