/** * Upgrade-on-limit flow. * * When the platform rejects an action because the workspace hit a plan limit * (e.g. the free-tier service cap), we surface a friendly prompt that opens the * upgrade page in the browser and retries once the user is done — mirroring the * "you've hit a limit, upgrade?" flow developers expect from modern CLIs. */ import { ApiClientError } from "./api/client"; /** * Prompt the user to upgrade after a limit error, open the upgrade page, and * wait for them to finish. Returns true if the caller should retry the action. */ export declare function promptUpgrade(error: ApiClientError): Promise; /** * Run an action; if it fails with an upgradeable plan-limit error, offer to * upgrade and retry once. */ export declare function withUpgradeRetry(action: () => Promise): Promise;