import type { MaintenanceScheduleOpts, MaintenanceScheduleResult } from '@heroku/types/data'; import type { ResourceCtx } from '../../../core/extend-resource.js'; import type { MaintenanceCallPreview, MaintenanceOptions } from './index.js'; export type ScheduleMaintenanceOptions = MaintenanceOptions & { beforeSchedule?: (preview: MaintenanceCallPreview) => Promise | void; }; export type ScheduleMaintenanceResult = { addon: MaintenanceCallPreview['addon']; schedule: MaintenanceScheduleResult; }; export declare function schedule(ctx: Pick, addonIdentity: string, body: MaintenanceScheduleOpts, options?: ScheduleMaintenanceOptions): Promise;