import type { FileSpaceService } from '../files/file-service.js'; import type { ProjectService } from '../projects/project-service.js'; export interface McpProjectScopeDeps { getProjects?: () => ProjectService | undefined; getFiles?: () => FileSpaceService | undefined; } /** * Enforces project-scoped isolation (`grant.projectIds`) before executing a capability. * When `projectIds` is undefined or empty, full personal workspace access applies. */ export declare function createMcpProjectScopeAuthorizer(capabilityIds: readonly string[], projectIds: readonly string[] | undefined, deps?: McpProjectScopeDeps): (capabilityId: string, input: unknown) => Promise; /** * Post-filters list/search outputs so project-scoped grants never leak out-of-scope records. */ export declare function filterMcpOutputForProjects(capabilityId: string, result: unknown, projectIds: readonly string[] | undefined): unknown;