import type { MaintenanceInfoResult } from '@heroku/types/data'; import type { ResourceCtx } from '../../../core/extend-resource.js'; import type { MaintenanceCallPreview, MaintenanceOptions } from './index.js'; export type WaitForMaintenanceCompletionOptions = MaintenanceOptions & { beforeWait?: (preview: MaintenanceCallPreview) => Promise | void; /** * Polling interval in milliseconds. Defaults to 5000 (5s). */ intervalMs?: number; /** * Maximum total time to wait before throwing. If omitted, polls until * maintenance completes or `signal` aborts. */ timeoutMs?: number; }; /** * Poll `data.maintenance.info` until the add-on's maintenance status is no * longer `running`. * * Throws if the add-on's maintenance isn't already `running` on the first * poll. * * The add-on is resolved exactly once; subsequent polls use the resolved * `addon.id` directly. */ export declare function waitForCompletion(ctx: Pick, addonIdentity: string, options?: WaitForMaintenanceCompletionOptions): Promise;