import type { ParsedArgs } from "./args.js"; import { type DiscoveredPackage } from "./workspace.js"; export interface WorkspaceContext { /** `--format=json` was requested. */ json: boolean; /** Absolute path of the workspace root (or `cwd` if no marker was found). */ root: string; /** Packages discovered under `root` that contain a settings config. */ packages: readonly DiscoveredPackage[]; } /** * Resolve workspace context for a `--workspace` subcommand. Returns the * discovered packages, or an exit code when nothing was found (caller * should `return` that code; the user-facing message has already been * printed). * * Standardises the "no packages" message across `check`, `inspect`, * and `preflight` so a single fix touches every subcommand. */ export declare function setupWorkspaceRun(args: ParsedArgs): WorkspaceContext | number; /** Print the header text shown above per-package output. */ export declare function printWorkspaceHeader(root: string, packageCount: number): void; /** Print the `=== name (relative/path) ===` banner for a single package. */ export declare function printPackageBanner(workspaceRoot: string, name: string, configPath: string): void; /** Print an error line for a package whose result couldn't be computed. */ export declare function printPackageError(error: string): void; //# sourceMappingURL=workspace-runner.d.ts.map