mirror of
https://github.com/SteamDeckHomebrew/decky-frontend-lib.git
synced 2026-05-23 19:38:50 +02:00
58 lines
2.1 KiB
TypeScript
58 lines
2.1 KiB
TypeScript
import { WindowRouter } from '../modules/Router';
|
|
import { AppDetails, LogoPosition, SteamAppOverview } from './SteamClient';
|
|
declare global {
|
|
interface Window {
|
|
LocalizationManager: {
|
|
m_mapTokens: Map<string, string>;
|
|
m_mapFallbackTokens: Map<string, string>;
|
|
m_rgLocalesToUse: string[];
|
|
};
|
|
App: {
|
|
m_CurrentUser: {
|
|
bIsLimited: boolean;
|
|
bIsOfflineMode: boolean;
|
|
bSupportAlertActive: boolean;
|
|
bCanInviteFriends: boolean;
|
|
NotificationCounts: {
|
|
comments: number;
|
|
inventory_items: number;
|
|
invites: number;
|
|
gifts: number;
|
|
offline_messages: number;
|
|
trade_offers: number;
|
|
async_game_updates: number;
|
|
moderator_messages: number;
|
|
help_request_replies: number;
|
|
};
|
|
strAccountBalance: string;
|
|
strAccountName: string;
|
|
strSteamID: string;
|
|
};
|
|
};
|
|
appStore: {
|
|
GetAppOverviewByAppID: (appId: number) => SteamAppOverview | null;
|
|
GetCustomVerticalCapsuleURLs: (app: SteamAppOverview) => string[];
|
|
GetCustomLandcapeImageURLs: (app: SteamAppOverview) => string[];
|
|
GetCustomHeroImageURLs: (app: SteamAppOverview) => string[];
|
|
GetCustomLogoImageURLs: (app: SteamAppOverview) => string[];
|
|
GetLandscapeImageURLForApp: (app: SteamAppOverview) => string;
|
|
GetVerticalCapsuleURLForApp: (app: SteamAppOverview) => string;
|
|
GetCachedLandscapeImageURLForApp: (app: SteamAppOverview) => string;
|
|
GetCachedVerticalImageURLForApp: (app: SteamAppOverview) => string;
|
|
GetPregeneratedVerticalCapsuleForApp: (app: SteamAppOverview) => string;
|
|
GetIconURLForApp: (app: SteamAppOverview) => string;
|
|
};
|
|
appDetailsStore: {
|
|
GetAppDetails: (appId: number) => AppDetails | null;
|
|
GetCustomLogoPosition: (app: SteamAppOverview) => LogoPosition | null;
|
|
SaveCustomLogoPosition: (app: SteamAppOverview, logoPositions: LogoPosition) => any;
|
|
};
|
|
SteamUIStore: {
|
|
GetFocusedWindowInstance: () => WindowRouter;
|
|
};
|
|
securitystore: {
|
|
IsLockScreenActive: () => boolean;
|
|
};
|
|
}
|
|
}
|