import { URI } from "../../../base/common/uri.js"; import { IWorkspaceTrustManagementService } from "../../workspace/common/workspaceTrust.service.js"; import type { IAgentHostWorkspaceTrust } from "./agentHostSchema.js"; import { SessionState } from "./state/sessionState.js"; /** * Whether `resource` is trusted under the Workspace Trust snapshot the client forwards to the Agent Host * (`AgentHostWorkspaceTrustConfigKey`): every resource when trust is disabled, otherwise a resource equal to or under a * trusted URI, ignoring path case on platforms whose paths are treated case-insensitively (Windows and macOS; this does * not detect a case-sensitive volume). An absent snapshot is untrusted. */ export declare function isAgentHostWorkspaceTrusted(resource: URI, trust: IAgentHostWorkspaceTrust | undefined): boolean; /** Resolves persisted trust roots; VS Code-created worktrees inherit the trust of their repository when the session has it. */ export declare function resolveAgentHostSessionTrustFolders(state: SessionState, workspaceTrustService: IWorkspaceTrustManagementService, mapResource?: (resource: URI) => URI): Promise;