export type CloudConfig = { /** Primary credential — user token (md_user_*) created on login. */ userToken?: string; /** Email of the logged-in user. */ email?: string; /** API base URL (defaults to https://api.thingd.cloud). */ url?: string; /** Currently active organization context (set by `thingd cloud org use`). */ organizationId?: string; /** Resolved MCP URL for the active cloud instance (auto-discovered or set by `thingd cloud instance use`). */ instanceUrl?: string; /** Active project ID (set when instanceUrl is resolved). */ projectId?: string; /** Active project slug (set when instanceUrl is resolved). */ projectSlug?: string; /** Active instance slug (set when instanceUrl is resolved). */ instanceSlug?: string; /** @deprecated Old JWT — still read as fallback if no userToken. */ token?: string; /** @deprecated Old project API key — still read as fallback if no userToken or token. */ apiKey?: string; }; export declare function cloudConfigPath(): string; export declare function readCloudConfig(): CloudConfig | null; export declare function writeCloudConfig(config: CloudConfig): void; /** * Returns the best available cloud MCP URL from saved config. * Only returns URL when a concrete instance endpoint is available * (instanceUrl) — the bare API url is not enough for MCP connections. */ export declare function resolveCloudUrl(config: CloudConfig): string | undefined; export declare function removeCloudConfig(): void; //# sourceMappingURL=cloud-config.d.ts.map