import { Console } from './types/consoles'; import { InitInput } from './lib/wasm'; export declare class RCheevos { private module; private constructor(); version(): string; computeHash(console: Console, file: ArrayBuffer): string | null; /** * Initializes a rcheevos instance. There is a one time global setup fee (sub 30ms), but subsequent * requests to initialize will be instantaneous, so it's not imperative to reuse the same instance. */ static initialize: (options?: LoadOptions) => Promise; /** * Resets initialization so that one can initialize the module again. Only intended for tests. */ static resetModule: () => void; } /** * Customize how rcheevos is loaded */ export interface LoadOptions { /** * Controls how the Wasm module is instantiated. */ wasm?: InitInput; }