import { QuotaKind } from './quota'; /** * Fired after a successful AI-token charge so a live credits meter can refetch * its balance. * * ★ Namespaced by product, like the quota event: `:ai-credits-updated`. * A product that shows a credits meter subscribes to its own name; a product * that shows none simply has no listener, and the dispatch costs nothing. * * ★ No census of listeners is kept here. The last one ("nothing listens in any * product") was false by the time it was read — a product's meter hook had * already subscribed — and a list in shared code cannot see into the products * that consume it. */ export declare function aiCreditsUpdatedEventName(product: string): string; export declare function notifyAiCreditsUpdated(product: string): void; /** * Opens a quota dialog for an assistant quota wall. * * The assistant's prompt and sandbox calls go through a raw fetch rather than an * Apollo mutation, so they cannot rely on the Apollo error link that normally * dispatches this — they call here directly. `kind` is `ai-credits` for the * per-token gate and `sandbox` for the sandbox-environment limit. */ export declare function dispatchAssistantQuotaExhausted(product: string, kind: QuotaKind): void; //# sourceMappingURL=aiCredits.d.ts.map