import { ensureFreshAccessToken } from './auth/google-auth.js'; export { ensureFreshAccessToken }; /** * OAuth 클라이언트 확보 — 호출 전에 access_token 을 사전 갱신하고, * refresh_token 이 만료/누락이면 raw googleapis 에러(invalid_grant 등) 대신 * 친절한 재로그인 안내를 던진다. * * 기존엔 만료 시 각 OAuth 도구(firebase/admob/iam/googleads/checks)가 * googleapis GaxiosError 를 그대로 노출 → 사용자는 "재로그인하라"는 안내를 못 받았다. */ export declare function requireAuth(requiredScope?: string): Promise; export declare const PLAY_AUTH_HINT: string; export declare const APPSTORE_AUTH_HINT: string; /** * Google Play 인증 — 서비스 계정 JSON 우선, 없으면 OAuth 클라이언트로 폴백. * * 로그인(mimi-seed-auth) 시 androidpublisher scope 를 이미 부여받으므로, * 별도 서비스 계정 JSON 을 받지 않아도 대부분의 Play 작업이 가능하다. * (서비스 계정은 서버/헤드리스 — onesub 영수증 검증 등 — 용도로 계속 우선 적용.) */ export declare function requirePlayStoreAuth(packageName?: string, requiredScope?: string): import("google-auth-library").OAuth2Client; export declare function requireServiceAccountJson(packageName?: string): string; export declare function requireAppStoreCreds(): import("./appstore/auth.js").AppStoreCredentials;