/** * Resolve the OpenCode project root from tool context rather than ambient CWD. * * @param context - OpenCode tool context containing directory/worktree data. * @returns Absolute project root used for project-scope primitive paths. */ export declare function resolveContextProjectRoot(context: unknown): string; /** * Resolve primitive configuration base path for project/global scopes. * * @param scope - OpenCode primitive scope. * @param projectRoot - Explicit project root from the tool context. * @returns Absolute project `.opencode` path or global OpenCode config path. */ export declare function resolveScopeBasePath(scope: "project" | "global", projectRoot: string): string; /** * Resolve a primitive file path without relying on process CWD for project scope. * * @param primitive - Primitive kind to locate. * @param name - Validated primitive name. * @param scope - Project or global OpenCode config scope. * @param projectRoot - Explicit project root from the tool context. * @returns File path for the requested primitive. */ export declare function resolvePrimitiveFilePath(primitive: "agent" | "command" | "skill", name: string, scope: "project" | "global", projectRoot: string): string; //# sourceMappingURL=configure-primitive-paths.d.ts.map