import { type IAutomationMetadataObject, type IAutomationMetadataObjectDefinition } from "@gooddata/sdk-model";
/**
 * @internal
 * @param onCreateSuccess - callback to be called when alert is created successfully
 * @param onCreateError - callback to be called when alert creation fails
 * @param onUpdateSuccess - callback to be called when alert is updated successfully
 * @param onUpdateError - callback to be called when alert update fails
 * @param onPauseSuccess - callback to be called when alert is paused successfully
 * @param onPauseError - callback to be called when alert pausing fails
 * @param onResumeSuccess - callback to be called when alert is resumed successfully
 * @param onResumeError - callback to be called when alert resuming fails
 */
export declare function useSaveAlertToBackend({ onCreateSuccess, onCreateError, onUpdateSuccess, onUpdateError, onPauseSuccess, onPauseError, onResumeSuccess, onResumeError }: {
    onCreateSuccess?: (alert: IAutomationMetadataObject) => void;
    onCreateError?: (error: Error) => void;
    onUpdateSuccess?: (alert: IAutomationMetadataObject) => void;
    onUpdateError?: (error: Error) => void;
    onPauseSuccess?: (alert: IAutomationMetadataObject) => void;
    onPauseError?: (error: Error) => void;
    onResumeSuccess?: (alert: IAutomationMetadataObject) => void;
    onResumeError?: (error: Error) => void;
}): {
    handleCreateAlert: (alert: IAutomationMetadataObject | IAutomationMetadataObjectDefinition) => void;
    handleUpdateAlert: (alert: IAutomationMetadataObject | IAutomationMetadataObjectDefinition) => void;
    handlePauseAlert: (alert: IAutomationMetadataObject | IAutomationMetadataObjectDefinition) => void;
    handleResumeAlert: (alert: IAutomationMetadataObject | IAutomationMetadataObjectDefinition) => void;
    isSavingAlert: boolean;
};
//# sourceMappingURL=useSaveAlertToBackend.d.ts.map