export declare const CONFIG_FILES: { readonly AGENT_ENV: "agentcore.json"; readonly AWS_TARGETS: "aws-targets.json"; readonly DEPLOYED_STATE: "deployed-state.json"; readonly MCP: "mcp.json"; readonly MCP_DEFS: "mcp-defs.json"; }; /** * Error thrown when no AgentCore project is found. */ export declare class NoProjectError extends Error { constructor(message?: string); } /** * Get the working directory where the user invoked the CLI. * * When running via npm/bun scripts (e.g., `npm run cli`), the package manager * changes process.cwd() to the package root. INIT_CWD preserves the original * directory where the user ran the command. * * For globally installed CLIs, INIT_CWD is not set, so we fall back to process.cwd(). */ export declare function getWorkingDirectory(): string; /** * Find the config root, throwing NoProjectError if not found. * Use this when a project is required to proceed. */ export declare function requireConfigRoot(startDir?: string): string; /** * Set the project root for the current session. * Call this after init creates a new project at cwd/projectName/. * Subsequent calls to findConfigRoot() will check this location first. */ export declare function setSessionProjectRoot(projectRoot: string): void; /** * Get the current session project root, if set. */ export declare function getSessionProjectRoot(): string | null; /** * Configuration for where AgentCore files are stored */ export interface PathConfig { /** Base directory for all AgentCore files */ baseDir: string; } /** * Walk up the directory tree from startDir looking for an agentcore directory. * If a session project was set (via setSessionProjectRoot), checks there first. * Returns the path to the agentcore directory if found, or null if not found. */ export declare function findConfigRoot(startDir?: string): string | null; /** * Get the project root directory (parent of agentcore/). * Returns null if no project is found. */ export declare function findProjectRoot(startDir?: string): string | null; /** * Default configuration uses agentcore/ in current working directory. */ export declare const DEFAULT_PATH_CONFIG: PathConfig; /** * Utility class for resolving AgentCore file paths */ export declare class PathResolver { private config; constructor(config?: Partial); /** * Get the base directory path (the agentcore/ config directory) */ getBaseDir(): string; /** * Get the project root directory (parent of agentcore/) */ getProjectRoot(): string; /** * Get the path to the agent config file (agentcore.json) */ getAgentConfigPath(): string; /** * Get the path to the AWS targets config file (aws-targets.json) */ getAWSTargetsConfigPath(): string; /** * Get the path to the CLI system directory (agentcore/.cli/) */ getCliSystemDir(): string; /** * Get the path to the logs directory (agentcore/.cli/logs/) */ getLogsDir(): string; /** * Get the path to the invoke logs directory (agentcore/.cli/logs/invoke/) */ getInvokeLogsDir(): string; /** * Get the path to the deployed state file (agentcore/.cli/deployed-state.json) */ getStatePath(): string; /** * Get the path to the MCP config file (mcp.json) */ getMcpConfigPath(): string; /** * Get the path to the MCP definitions file (mcp-defs.json) */ getMcpDefsPath(): string; /** * Update the base directory */ setBaseDir(baseDir: string): void; } //# sourceMappingURL=path-resolver.d.ts.map