import type { CLIResult } from "../cli/command-registry.js"; export interface ResolvedProject { slug: string; name: string; description: string; projectDir: string; /** * First registered workspace path of the matched project, absolute and * `~`-expanded. Empty string only when the project somehow carries no * workspace path — deliberately NOT `process.cwd()`, since callers that write * into a workspace (e.g. the Claude Code hook installer) must refuse rather * than target whatever directory the CLI happened to run from. */ workspacePath: string; } type ResolveSuccess = { ok: true; } & ResolvedProject; type ResolveFailure = { ok: false; result: CLIResult; }; export type ResolveResult = ResolveSuccess | ResolveFailure; /** * Resolve a project from: * - undefined → uses cwd * - absolute path → workspace match * - slug (no `/` or `.`) → direct meta lookup then workspace match * - relative path → resolved then workspace match * * Returns `{ ok: true, slug, name, projectDir }` on success, * or `{ ok: false, result: CLIResult }` with a failure envelope. */ export declare function resolveProject(pathOrSlug: string | undefined): Promise; export {}; //# sourceMappingURL=project-resolver.d.ts.map