import type { Workspace } from "../types.js";
export interface WorkspaceScopeResolved {
    /** Repo-relative root paths to use as scoping prefix (one entry per resolved workspace). */
    rootPaths: string[];
    /** Resolved workspaces (for diagnostic output by callers). */
    workspaces: Workspace[];
}
export interface WorkspaceScopeError {
    error: "unknown_workspace";
    input: string;
    available: string[];
}
/** Resolve a `workspace=` argument against the active CodeIndex.
 *  - When `workspace` is provided: look up by exact name or id; return
 *    { error: "unknown_workspace" } if not found.
 *  - When `workspace` is omitted AND `framework` is supplied: smart-default
 *    to the workspaces whose `detected_frameworks` includes the framework.
 *    If none, return { rootPaths: [] } (caller falls back to whole-repo scan).
 *  - On flat repo (no index.workspaces): return { rootPaths: [] }. */
export declare function resolveWorkspaceScope(repo: string, workspace: string | undefined, framework?: string): Promise<WorkspaceScopeResolved | WorkspaceScopeError>;
//# sourceMappingURL=workspace-scope-helper.d.ts.map