/**
 * @license
 * Copyright 2025 Vybestack LLC
 * SPDX-License-Identifier: Apache-2.0
 */
import { TrustLevel, LoadedTrustedFolders } from '../../config/trustedFolders.js';
export interface UsePermissionsModifyTrustReturn {
    /** Current trust level for the working directory */
    currentTrustLevel: TrustLevel | undefined;
    /** Pending trust level change (before commit) */
    pendingTrustLevel: TrustLevel | undefined;
    /** Set a pending trust level change */
    setPendingTrustLevel: (level: TrustLevel) => void;
    /** Commit the pending trust level change */
    commitTrustLevel: (level?: TrustLevel) => void;
    /** Whether the workspace is trusted through IDE */
    isIdeTrusted: boolean;
    /** Whether the workspace is trusted through parent folder */
    isParentTrusted: boolean;
    /** Whether a restart is required after committing */
    requiresRestart: boolean;
    /** The current working directory */
    workingDirectory: string;
    /** The parent folder name */
    parentFolderName: string;
    /** The loaded trusted folders configuration */
    trustedFolders: LoadedTrustedFolders;
}
/**
 * Hook that manages folder trust settings for the permissions dialog.
 * Handles current trust level state, pending changes, inherited trust detection,
 * and restart requirement detection.
 */
export declare function usePermissionsModifyTrust(): UsePermissionsModifyTrustReturn;
