import type { AddOn } from '@heroku/types/3.sdk'; import type { ResourceCtx } from '../../../core/extend-resource.js'; import type { DestroyAndWaitOptions } from './types.js'; /** * Delete an add-on and optionally wait for deprovisioning to complete. * * Wraps `addOn.delete` with two pieces of orchestration: * * - When `wait: true` is set, polls `addOn.infoByApp` on a * `waitIntervalMs` cadence until the add-on's `state` is no longer * `deprovisioning`. A 404 response during polling is treated as * successful deprovisioning (the platform deletes the record). * - `options.onDeprovisioning` fires once after the delete response * when polling is about to begin, letting callers surface a * two-phase status display. * * When `options.force` is set, the delete request sends `{force: true}` * as its body (scoped to the delete call only, not the poll requests). * * Both the delete and the poll requests send `Accept-Expansion: plan`. */ export declare function destroyAndWait(ctx: Pick, appIdentity: string, addonIdentity: string, options?: DestroyAndWaitOptions): Promise;