/******************************************************************************** * Copyright (c) 2026 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License 2.0 which is available at * https://www.eclipse.org/legal/epl-2.0 * * SPDX-License-Identifier: EPL-2.0 ********************************************************************************/ import type { Dispatch, MutableRefObject } from 'react'; import { ScanState, ScanAction } from './scan-types'; /** * Hook that returns the async confirm action handler for allow/block operations * on selected quarantined scans. Makes a single API call to persist the decision. * The backend handles adding enforced threat files to the allow/block list. */ export declare const useConfirmAction: (service: any, state: ScanState, dispatch: Dispatch, handleErrorRef: MutableRefObject<(error: any) => void>) => () => Promise; /** * Hook that returns the async action handler for retrying all failed scanner jobs * of a single terminal scan. */ export declare const useRetryFailedScannerJobsAction: (service: any, dispatch: Dispatch, handleErrorRef: MutableRefObject<(error: any) => void>) => (scanId: string) => Promise; /** * Hook that returns the async file action handler for allow/block/delete operations * on selected files in Allowed/Blocked Files tabs. */ export declare const useFileAction: (service: any, state: ScanState, dispatch: Dispatch, handleErrorRef: MutableRefObject<(error: any) => void>) => () => Promise; //# sourceMappingURL=scan-api-actions.d.ts.map