export type GatePayAuthPhase = "already_authenticated" | "login_succeeded"; /** `ensureGatePayAccessTokenAndUid` 成功时的 access_token、用户 id 与是否本次新登录 */ export interface GatePayAuthResult { accessToken: string; uid: string; phase: GatePayAuthPhase; } /** * 若进程内已有有效 Gate Pay access_token(含临近过期时用 refresh_token 刷新)则跳过; * 否则走浏览器 OAuth(localhost 回调 + 远程换 token)。 */ export declare function runGatePayDeviceAuthIfNeeded(): Promise; /** * 若进程内已有有效 Gate Pay access_token(含 refresh)则直接返回 token 与 uid; * 否则走与 `runGatePayDeviceAuthIfNeeded` 相同的浏览器 OAuth,完成后返回 token 与 uid。 */ export declare function ensureGatePayAccessTokenAndUid(): Promise; //# sourceMappingURL=auth.d.ts.map