UNPKG

2.59 kBTypeScriptView Raw
1export declare const is404: () => boolean;
2export declare const isFileNotFound: () => boolean;
3export declare const isHome: (url?: URL | HTMLAnchorElement | Location) => boolean;
4export declare const isAGS: (url?: URL | HTMLAnchorElement | Location) => boolean;
5export declare const isGames: (url?: URL | HTMLAnchorElement | Location) => boolean;
6export declare const isGamesAll: (url?: URL | HTMLAnchorElement | Location) => boolean;
7export declare const isGamesMonthlyPicks: (url?: URL | HTMLAnchorElement | Location) => boolean;
8export declare const isGamesAwardWinners: (url?: URL | HTMLAnchorElement | Location) => boolean;
9export declare const isGamesSearch: (url?: URL | HTMLAnchorElement | Location) => boolean;
10export declare const isGamesLuckyDip: (url?: URL | HTMLAnchorElement | Location) => boolean;
11export declare const isGamesRecentPanelRatings: (url?: URL | HTMLAnchorElement | Location) => boolean;
12export declare const isGamesUnrated: (url?: URL | HTMLAnchorElement | Location) => boolean;
13export declare const isGamesNotVeryRated: (url?: URL | HTMLAnchorElement | Location) => boolean;
14export declare const isGamesYouRated: (url?: URL | HTMLAnchorElement | Location) => boolean;
15export declare const isGamesAdd: (url?: URL | HTMLAnchorElement | Location) => boolean;
16export declare const isGameDownload: (url?: URL | HTMLAnchorElement | Location) => boolean;
17export declare const isGameMirror: (url?: URL | HTMLAnchorElement | Location) => boolean;
18export declare const isGameStore: (url?: URL | HTMLAnchorElement | Location) => boolean;
19export declare const isGameVote: (url?: URL | HTMLAnchorElement | Location) => boolean;
20export declare const isGameAddComment: (url?: URL | HTMLAnchorElement | Location) => boolean;
21export declare const isGameEdit: (url?: URL | HTMLAnchorElement | Location) => boolean;
22export declare const isGame: (url?: URL | HTMLAnchorElement | Location) => boolean;
23export declare const isCommunity: (url?: URL | HTMLAnchorElement | Location) => boolean;
24export interface GameInfo {
25 owner: string;
26 name: string;
27 /** A games's subpage
28 @example '/site/games/game/gameId/download/downloadId' -> 'download'
29 @example '/site/games/game/gameId/mirror/mirrorId' -> 'mirror'
30 @example '/site/games/game/gameId/' -> ''
31 @example '/site/community/' -> undefined */
32 path: string;
33}
34export declare const utils: {
35 getUsername: () => string | undefined;
36 getCleanPathname: (url?: URL | HTMLAnchorElement | Location) => string;
37 getGameInfo: (url?: URL | HTMLAnchorElement | string | Location) => GameInfo | undefined;
38};