import type { MaintenanceUpdateWindowOpts, MaintenanceUpdateWindowResult, MaintenanceWindowResult } from '@heroku/types/data'; import type { ResourceCtx } from '../../../core/extend-resource.js'; import type { MaintenanceCallPreview, MaintenanceOptions } from './index.js'; export type GetMaintenanceWindowOptions = MaintenanceOptions & { beforeGetWindow?: (preview: MaintenanceCallPreview) => Promise | void; }; export type GetMaintenanceWindowResult = { addon: MaintenanceCallPreview['addon']; window: MaintenanceWindowResult; }; export declare function getWindow(ctx: Pick, addonIdentity: string, options?: GetMaintenanceWindowOptions): Promise; export type UpdateMaintenanceWindowOptions = MaintenanceOptions & { beforeUpdateWindow?: (preview: MaintenanceCallPreview) => Promise | void; }; export type UpdateMaintenanceWindowResult = { addon: MaintenanceCallPreview['addon']; window: MaintenanceUpdateWindowResult; }; export declare function updateWindow(ctx: Pick, addonIdentity: string, body: MaintenanceUpdateWindowOpts, options?: UpdateMaintenanceWindowOptions): Promise;