UNPKG

@shift-code/cli

Version:

Redeem Gearbox SHiFT codes automatically

16 lines (15 loc) 947 B
import { Account, Session } from "@shift-code/api"; export declare type AccountCache = { account?: Account; session?: Session; codes?: string[]; }; export declare function accountCacheExists(accountID: string): Promise<boolean>; export declare function loadAccountCache(accountID: string): Promise<AccountCache>; export declare function saveAccountCache(accountID: string, data: Partial<AccountCache>): Promise<void>; export declare function saveAccountSession(accountID: string, session: Session): Promise<void>; export declare function saveAccount(accountID: string, account: Account): Promise<void>; export declare function clearAccountSession(accountID: string): Promise<void>; export declare function saveCodeCache(accountID: string, codes: string[]): Promise<void>; export declare function appendCodeCache(accountID: string, code: string): Promise<void>; export declare function clearCodeCache(accountID: string): Promise<void>;