import { AgentSandboxEnabledSettingValue, AgentSandboxEnabledValue, IAgentSandboxUserConfiguredPaths } from "./settings.js"; type SandboxFileSystemPaths = Readonly<{ readwritePaths?: readonly string[]; readonlyPaths?: readonly string[]; deniedPaths?: readonly string[]; }>; /** Effective network restrictions resolved by the Copilot Agent Host for an integrated-browser client tool. */ export interface ISandboxNetworkRestrictions { readonly sandboxEnabled: boolean; readonly allowNetwork: boolean; readonly allowedDomains: readonly string[]; readonly deniedDomains: readonly string[]; } export declare function isSandboxNetworkRestrictions(value: unknown): value is ISandboxNetworkRestrictions; /** Resolves local sandbox settings against the managed floor without changing saved preferences. */ export declare class SandboxSettingsResolutionHelper { static getNetworkRestrictions(enabled: AgentSandboxEnabledSettingValue | undefined, allowNetwork: boolean | undefined): { sandboxEnabled: boolean; allowNetwork: boolean; applyDomainRestrictions: boolean; }; static resolveEnabled(local: AgentSandboxEnabledValue | undefined, managed: boolean | undefined): AgentSandboxEnabledValue | undefined; static resolveSandboxServers(local: boolean | undefined, managed: boolean | undefined): boolean | undefined; static resolveAllowBypass(local: boolean | undefined, managed: boolean | undefined, managedEnabled: boolean | undefined): boolean | undefined; static resolveAllowAccess(local: boolean | undefined, managed: boolean | undefined): boolean | undefined; /** Uses a managed allowlist when present and combines blocklists; runtime enforcement remains authoritative. */ static resolveNetworkHosts(localAllowedHosts: readonly string[] | undefined, localBlockedHosts: readonly string[] | undefined, managedAllowedHosts: readonly string[] | undefined, managedBlockedHosts: readonly string[] | undefined): { allowedHosts: string[]; blockedHosts: string[]; }; /** Uses managed grant lists when present and combines denied paths; runtime enforcement remains authoritative. */ static resolveFileSystemPaths(local: SandboxFileSystemPaths | undefined, managed: SandboxFileSystemPaths | undefined): IAgentSandboxUserConfiguredPaths; } export {};