@ciberus/find-steam-app
Version:
Find location of an installed Steam app
36 lines • 1.5 kB
TypeScript
import { ISteamLibrariesRaw, ISteamLibraryRaw } from "./libraries";
import { IAppManifest } from "./manifest";
import { findSteamPath, SteamNotFoundError } from "./steam";
import { getLibraryInstallsFolder, getLibraryManifestsFolder } from "./utils";
export declare function findSteamLibrariesPaths(): Promise<string[]>;
export declare function findSteamLibraries(): Promise<ISteamLibrariesRaw>;
export declare function findSteamAppManifest(appId: number): Promise<IAppManifest | null>;
export declare function findSteamAppByName(name: string): Promise<string>;
export declare function findSteamAppById(appId: number, forceV1?: boolean): Promise<string>;
interface ISteamApp {
appId: number;
path: string;
manifestPath: string;
manifest: IAppManifest;
}
declare type ISteamLibrary = {
path: string;
apps: ISteamApp[];
label?: string;
contentid?: number;
totalsize?: number;
update_clean_bytes_tally?: number;
time_last_update_corruption?: number;
};
declare type ISteamLibraries = {
version: "v1" | "v2";
steamPath: string;
librariesVdfFilePath: string;
libraries: ISteamLibrary[];
};
declare type ISteamOptions = {
forceV1?: boolean;
};
export declare function findSteam(options?: ISteamOptions): Promise<ISteamLibraries>;
export { IAppManifest, ISteamApp, ISteamLibraries, ISteamLibraryRaw, ISteamLibrary, SteamNotFoundError, findSteamPath, getLibraryInstallsFolder, getLibraryManifestsFolder, };
//# sourceMappingURL=index.d.ts.map