interface OpenCCOptions {
  includeTofuRiskDictionaries?: boolean;
  resourceZip?: string;
}

declare class OpenCC {
  constructor(config?: string, options?: OpenCCOptions);
  static readonly version: string;
  static generateDict(inputFileName: string, outputFileName: string, formatFrom: string, formatTo: string): void;
  convert(input: string, callback: (err: string | undefined, convertedText: string) => void): void;
  convertSync(input: string): string;
  convertPromise(input: string): Promise<string>;
}
export { OpenCC, OpenCCOptions };
