export interface WorkspaceChildPathCheck { path: string; exists: boolean; git: boolean; } export declare function checkWorkspaceChildPath(parent: string, repo: string): WorkspaceChildPathCheck; export declare function assertWorkspaceChildCloneTarget(parent: string, repo: string): string; export declare function assertDiscoverableChildGitRepoName(name: string, options?: DiscoverChildGitRepoOptions): void; export interface DiscoverChildGitRepoOptions { includeHidden?: boolean; printableOnly?: boolean; } /** * Immediate child directories containing `.git` metadata. This is discovery only: * callers must not use it as an implicit workspace read-scope allowlist. */ export declare function discoverChildGitRepos(parent: string, options?: DiscoverChildGitRepoOptions): string[]; /** * The declared child repositories of a workspace parent. An explicit list (from * `--repos a,b`) is honored as-is after validation. When `--repos` is absent, this * returns an empty allowlist rather than silently enrolling every child `.git` * directory into generated workspace/MCP read scopes. */ export declare function detectChildRepos(parent: string, explicit?: readonly string[]): string[]; /** Parse `--repos a,b,c` into a list (empty when the flag is absent). */ export declare function reposOption(raw: unknown): string[];