export declare const V1_BASE = "https://api.appstoreconnect.apple.com/v1"; export declare const V2_BASE = "https://api.appstoreconnect.apple.com/v2"; /** * 타입 없는 ASC 응답 — apiGet/apiPost/apiPatch 가 예전부터 `res.json()`(any)을 그대로 돌려줬고 * 호출부가 그 형태에 기대고 있다. 새 코드는 apiRequest 에 구체 타입을 넘길 것. */ export type UntypedAscJson = any; export type AppStoreProductType = 'subscription' | 'consumable' | 'non_consumable'; export declare function authHeadersOrThrow(): Promise>; export declare function apiRequest(base: string, resourcePath: string, authHeaders: Record, init: RequestInit): Promise; /** * "리소스 없음"인지 **상태 코드로** 판별한다. * * friendlyAppStoreError 가 cause.status 에 실제 HTTP 상태를 붙여준다. 메시지 문자열로 * 404 를 찾으면 본문에 'not found'/'404' 가 섞인 403·409 까지 "없음"으로 삼켜서, * 권한 오류가 조용히 빈 결과로 둔갑한다. 상태를 못 읽는 경우에만 문자열로 폴백한다. */ export declare function isNotFound(err: unknown): boolean;