/// import type { ownership_cache, user_dat_file, download, download_install_state, download_cache } from './generated'; export declare class UbisoftFileParser { private debug; /** * Parse the contents of `%LOCALAPPDATA%\Ubisoft Game Launcher\user.dat` * @param userDat Raw contents of user.dat * @returns Decoded object of file */ parseUserDat(userDat: Buffer): user_dat_file.Cache & protobuf.Message; /** * Parse the contents of `Registry(HKLM\SOFTWARE\WOW6432Node\Ubisoft\Launcher\InstallDir)\cache\ownership\{user guid}` * @param ownershipCache Raw contents of the ownership cache * @returns Decoded object of file */ parseOwnershipCache(ownershipCache: Buffer): ownership_cache.OwnershipCache & protobuf.Message; /** * Parse the contents of `Registry(HKLM\SOFTWARE\WOW6432Node\Ubisoft\Launcher\InstallDir)\cache\download\{appId guid}` * @param downloadCache Raw contents of the download cache * @returns Decoded object of file */ parseDownloadCache(downloadCache: Buffer): download_cache.DownloadCache & protobuf.Message; /** * Parse the contents of `{manifest hash}.metadata`. It is obtained (but not stored) during download start. * @param downloadMetadata Raw contents of the download metadata * @returns Decoded object of file */ parseDownloadMetadata(downloadMetadata: Buffer): download.ManifestMetaData & protobuf.Message; /** * Parse the contents of `Registry(HKLM\SOFTWARE\WOW6432Node\Ubisoft\Launcher\InstallDir)\data\{game ID}\manifests\{manifest hash}` * or `{game install directory}\uplay_install.manifest` * @param downloadManifest Raw contents of the download/install manifest * @returns Decoded object of file */ parseDownloadManifest(downloadManifest: Buffer): download.Manifest & protobuf.Message; /** * Parse the contents of `{manifest hash}.licenses`. It is obtained (but not stored) during download start. * @param downloadMetadata Raw contents of the download licenses * @returns Decoded object of file */ parseDownloadLicenses(downloadLicenses: Buffer): download.ManifestLicenses & protobuf.Message; /** * Parse the contents of `{game install directory}\uplay_install.state` * @param downloadManifest Raw contents of the download/install state * @returns Decoded object of file */ parseDownloadInstallState(downloadInstallState: Buffer): download_install_state.DownloadInstallState & protobuf.Message; }