import type { Environment } from '../config/environments.js'; export interface ApiDeps { fetch: typeof globalThis.fetch; } type FetchResponse = Awaited>; /** * PURE-ish: turn a 403 into the sentence that actually helps, and the category * the outcome report files it under (`pro_expired` or `pro_required`). * * Falls back to the generic wording whenever the body is missing, unparseable * or from an older api-server — a CLI that throws while explaining a refusal * would be worse than one that explains it vaguely. */ export declare function proRefusal(response: FetchResponse): Promise<{ message: string; code: 'pro_expired' | 'pro_required'; }>; export declare function apiGet(environment: Environment, path: string, accessToken: string, deps: ApiDeps): Promise; export declare function apiPost(environment: Environment, path: string, accessToken: string, body: unknown, deps: ApiDeps): Promise; export {};