import { type CloudSession } from "./session.js"; export declare function isVendoKey(key: string): boolean; /** Human-facing list of what a Cloud key unlocks over OSS single-player. Shown * whether or not a key is present, so a keyless dev sees the offer. * * Two bullets, not four. SSO/roles, registry publishing and the adapter-slot * list are all true and all irrelevant to a person forty seconds into their * first install; they belong in the console, not the ceremony. Neither line * may contain "; " — that is the separator every caller joins and the * renderer splits on. */ export declare const CLOUD_UNLOCKS: readonly string[]; export interface CloudDoctorResult { present: boolean; ok: boolean; unlocks: readonly string[]; error?: string; } /** Check VENDO_API_KEY presence and shape locally; always surface what Cloud * unlocks. Key problems surface on the first real service call — there is no * validate endpoint, and no request leaves the machine here. */ export declare function cloudDoctor(options?: { env?: Record; }): Promise; export declare class CloudError extends Error { readonly code: string; readonly status: number; constructor(code: string, message: string, status: number); } export { resolveCloudBaseUrl, type CloudUrlOptions } from "../../core/index.js"; import { type CloudUrlOptions } from "../../core/index.js"; export interface SessionStore { read(): Promise; write(session: CloudSession): Promise; } export interface CloudFetchOptions extends CloudUrlOptions { method?: string; body?: unknown; auth?: "user" | "key"; apiKey?: string; accessToken?: string; fetchImpl?: typeof fetch; home?: string; sessionStore?: SessionStore; signal?: AbortSignal; } export declare function cloudFetch(path: string, options?: CloudFetchOptions): Promise;