/** * Abstract base for store API clients. * * Extracts common HTTP helpers shared by GooglePlayClient, HuaweiAppGalleryClient, * and RuStoreClient. Each subclass provides its own auth header via `authHeader()`. */ export declare abstract class AbstractStoreClient { /** * Returns the HTTP header used for authentication. * Override to customize (e.g. "Public-Token" for RuStore vs "Authorization" for Google/Huawei). */ protected authHeader(token: string): Record; /** * Generic JSON API call with error handling. * Subclasses that need a different error prefix can override `apiErrorPrefix`. */ protected api(method: string, url: string, token: string, body?: unknown): Promise; /** Prefix for API error messages (e.g. "Google Play API", "Huawei API"). */ protected abstract get apiErrorPrefix(): string; /** * Reads a ReadableStream into a single Buffer. * Used by Huawei and RuStore for multipart file uploads. */ protected streamToBuffer(stream: ReadableStream): Promise; } //# sourceMappingURL=base-client.d.ts.map