/******************************************************************************** * 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 { ConfirmActionType, FileActionType, ScanResult, FileDecision } from '../../context/scan-admin'; /** * Return type for the useDialogs hook */ export interface UseDialogsReturn { /** Confirm dialog state and actions (for extension-level allow/block) */ confirmDialog: { isOpen: boolean; action: ConfirmActionType; selectedExtensions: ScanResult[]; close: () => void; execute: () => void; }; /** File dialog state and actions (for file-level allow/block/delete) */ fileDialog: { isOpen: boolean; actionType: FileActionType; selectedFiles: FileDecision[]; close: () => void; execute: () => void; }; openAllowDialog: () => void; openBlockDialog: () => void; openFileDialog: (action: FileActionType) => void; } /** * Hook for dialog state and actions. * Provides a clean interface for dialog components to consume. */ export declare const useDialogs: () => UseDialogsReturn; //# sourceMappingURL=use-dialogs.d.ts.map