@dschu012/casclib
Version:
CascLib node bindings
23 lines (22 loc) • 1.13 kB
TypeScript
export declare const LOCALES: string[];
export declare type GameName = "Heroes of the Storm" | "World of Warcraft" | "Diablo 3" | "Overwatch" | "Starcraft" | "Starcraft II" | "Unknown";
export interface AddonStorageInfo {
fileCount: number;
gameName: GameName;
gameBuild: number;
installedLocales: number;
}
export interface StorageInfo {
fileCount: number;
gameName: GameName;
gameBuild: number;
installedLocales: string[];
}
export declare type OpenStorageCallback = (error: Error, storageHandle: any) => void;
export declare function openStorageSync(path: string, locales?: string[]): any;
export declare function openStorage(path: string): Promise<any>;
export declare function openStorage(path: string, locales: string[]): Promise<any>;
export declare function openStorage(path: string, callback: OpenStorageCallback): null;
export declare function openStorage(path: string, locales: string[], callback: OpenStorageCallback): null;
export declare function getStorageInfo(storageHandle: any): StorageInfo;
export declare function closeStorage(storageHandle: any): void;