import React from 'react'; import type { Application, ICapacity, IModalComponentProps, IServerGroupJob } from '@spinnaker/core'; import { TaskMonitor } from '@spinnaker/core'; import type { IAmazonServerGroup } from '../../../domain'; export interface IAmazonResizeServerGroupModalProps extends IModalComponentProps { application: Application; serverGroup: IAmazonServerGroup; } export interface IAmazonResizeServerGroupModalState { advancedMode: boolean; interestingHealthProviderNames: string[]; initialValues: IAmazonResizeServerGroupValues; taskMonitor: TaskMonitor; platformHealthOnlyShowOverride?: boolean; } export interface IAmazonResizeServerGroupValues { min: number; max: number; desired: number; enforceCapacityConstraints: boolean; reason?: string; } export interface IResizeJob extends IServerGroupJob { constraints?: { capacity: ICapacity; }; reason?: string; interestingHealthProviderNames: string[]; } export declare class AmazonResizeServerGroupModal extends React.Component { static defaultProps: Partial; private formikRef; static show(props: IAmazonResizeServerGroupModalProps): PromiseLike; constructor(props: IAmazonResizeServerGroupModalProps); private validate; private toggleAdvancedMode; private close; private autoIncrementDesiredIfNeeded; private platformHealthOverrideChanged; private isDesiredControlledByAutoscaling; private submit; private renderSimpleMode; private renderAdvancedMode; private renderCapacityConstraintSelector; private renderScalingPolicyWarning; render(): JSX.Element; }