import type { ToolHandlerConfig } from '../types/index.js'; export interface ResolutionInput { workspace_id?: string; project_number?: number; content?: string; tags?: string[]; } export interface ResolvedContext { workspaceId: string; projectNumber: number | undefined; } export declare function loadProjectRegistryFromConfig(): Record | undefined; export declare const PROJECT_KEYWORD_ALIASES: Record; /** * Resolves full workspace and project context from available inputs. * Priority: * 1. Explicit workspace_id (if not 'default') and explicit project_number * 2. Explicit project_number -> lookup workspace_id in projectRegistry * 3. Explicit workspace_id -> lookup project_number in projectRegistry * 4. Content / Tags fuzzy matching against projectRegistry keys and names * 5. process.cwd() path matching against projectRegistry * 6. Config defaults or fallback 'default' */ export declare function resolveProjectContext(input: ResolutionInput, config?: ToolHandlerConfig): ResolvedContext; /** * Resolves the effective workspace ID from available context. * Priority: explicit workspace_id > project_number lookup > content/tags lookup > config default > 'default' */ export declare function resolveWorkspaceId(explicitWorkspaceId: string | undefined, projectNumber: number | undefined, config?: ToolHandlerConfig, content?: string, tags?: string[]): string; interface RegistryEntry { path?: string; project_number?: number; } /** * Automatically resolves a project number by inspecting the global config * and matching the provided working directory against registered paths. */ export declare function resolveProjectNumberFromPath(cwd: string): number | undefined; export {}; //# sourceMappingURL=workspace-resolver.d.ts.map