import type { AddOn } from '@heroku/types/3.sdk'; import type { DeprovisioningAddOn, ResolvedAddOn } from './types.js'; export declare class AddonNotFoundError extends Error { readonly resource: string; readonly id = "not_found"; readonly statusCode = 404; constructor(resource?: string); get body(): { id: string; message: string; resource: string; }; } export declare class AddonAmbiguousError extends Error { readonly matches: AddOn[]; readonly id = "multiple_matches"; readonly statusCode = 422; constructor(matches: AddOn[]); get body(): { id: string; message: string; }; } /** * Thrown by `createAndWait` when the Platform returns 423 * `confirmation_required`. Callers that want to prompt the user should * catch this, gather a confirmation value, and retry the call with * `body.confirm` set. */ export declare class AddonConfirmationRequiredError extends Error { readonly platformMessage: string; readonly id = "confirmation_required"; readonly statusCode = 423; constructor(platformMessage: string); get body(): { id: string; message: string; }; } /** * Thrown by `postgresDatabase.destroy` when the database can't be found under * the requested app but does exist under another app. Restores the CLI's * historical "is on not " guidance so a database scoped to the * wrong app surfaces a targeted error rather than a bare not-found. */ export declare class AddonAppMismatchError extends Error { readonly addon: ResolvedAddOn; readonly requestedApp: string; readonly id = "app_mismatch"; constructor(addon: ResolvedAddOn, requestedApp: string); get body(): { id: string; message: string; }; } /** * Thrown by `postgresDatabase.destroy` when the delete request (or its * deprovisioning wait) fails after the database was resolved and any * `beforeDestroy` confirmation passed. Carries the resolved add-on so callers * can render tier-specific guidance without re-resolving; the underlying * failure is preserved as the standard `cause`. */ export declare class AddonDestroyFailedError extends Error { readonly addon: ResolvedAddOn; readonly id = "destroy_failed"; constructor(addon: ResolvedAddOn, cause: unknown); get body(): { id: string; message: string; }; } /** * Thrown by `createAndWait` when the Platform reports the add-on * settled into a non-provisioned terminal state (e.g. `deprovisioned`). */ export declare class AddonProvisioningFailedError extends Error { readonly addon: AddOn | DeprovisioningAddOn; readonly id = "provisioning_failed"; constructor(addon: AddOn | DeprovisioningAddOn); get body(): { id: string; message: string; }; }