export declare function isQuotaExhaustedError(error: unknown): boolean; export type QuotaKind = 'session' | 'environment' | 'tunnel' | 'tunnel-start' | 'tunnel-subdomain' | 'action' | 'component' | 'catalog' | 'docs-compilation' | 'gitops-integration' | 'note' | 'vibe' | 'vibedeck' | 'webhook' | 'plugin' | 'template' | 'docs-site' | 'command-execution' | 'target' | 'agent' | 'sandbox' | 'ai-credits' | 'profile' | 'backup' | 'alias' | 'task' | 'secret' | 'generic'; export declare function getQuotaDialogContent(kind: QuotaKind): { title: string; message: string; }; export declare function inferQuotaKindFromOperation(operationName?: string | null): QuotaKind; /** * The product id VibeControls' quota events are namespaced under. Shared with * the host shell: its fe-libs `QuotaUpgradeBridge product="vibecontrols"` * listens on the same event, and `QuotaExhaustedProvider` claims the product's * dialog (fe-libs `useQuotaDialogOwnership`) so only one of the two answers. */ export declare const VIBECONTROLS_QUOTA_PRODUCT = "vibecontrols"; /** * Event name used by the global Apollo error link (and the assistant * transport) to broadcast quota errors — `vibecontrols:quota-exhausted`. * Derived from fe-libs' shared namespace so the shell's bridge and this MFE * can never drift apart on the string. */ export declare const QUOTA_EXHAUSTED_EVENT: string; export interface QuotaExhaustedEventDetail { kind: QuotaKind; message?: string; operationName?: string | null; } /** * Pages that open a local QuotaExhaustedDialog should call this right * before doing so. The global provider will then skip the next event * within a short coordination window. */ export declare function markQuotaHandledLocally(): void; /** * The global QuotaExhaustedProvider calls this to decide whether to skip * opening its own dialog. Returns true if a page-level handler claimed * the failure in the last 250ms. */ export declare function wasQuotaHandledLocally(): boolean;