export interface RunxConfigFile { readonly agent?: { readonly provider?: string; readonly model?: string; readonly api_key_ref?: string; }; } export interface LocalSkillPackage { readonly markdown: string; readonly profileDocument?: string; readonly profileSourcePath?: string; } export interface ResolvedLocalProfile { readonly profileDocument?: string; readonly profileSourcePath?: string; readonly source: "profile-state" | "skill-profile" | "workspace-bindings" | "none"; } type RunxConfigKey = "agent.provider" | "agent.model" | "agent.api_key"; interface PathResolutionOptions { readonly cwd?: string; } interface RegistryPathOptions extends PathResolutionOptions { readonly registry?: string; readonly registryDir?: string; } export type RunxRegistryTarget = { readonly mode: "remote"; readonly registryUrl: string; } | { readonly mode: "local"; readonly registryPath: string; readonly registryUrl?: string; }; export declare function findRunxWorkspaceRoot(start: string): string | undefined; export declare function resolveRunxWorkspaceBase(env: NodeJS.ProcessEnv, options?: PathResolutionOptions): string; export declare function resolvePathFromUserInput(userPath: string, env: NodeJS.ProcessEnv, options?: PathResolutionOptions): string; export declare function findNearestProjectRunxDir(start: string): string | undefined; export declare function resolveRunxProjectDir(env: NodeJS.ProcessEnv, options?: PathResolutionOptions): string; export declare function resolveRunxGlobalHomeDir(env: NodeJS.ProcessEnv, options?: PathResolutionOptions): string; export declare function resolveRunxHomeDir(env: NodeJS.ProcessEnv, options?: PathResolutionOptions): string; export declare function resolveRunxMemoryDir(env: NodeJS.ProcessEnv, options?: PathResolutionOptions): string; export declare function resolveSkillInstallRoot(env: NodeJS.ProcessEnv, to?: string, options?: PathResolutionOptions): string; export declare function resolveRunxRegistryPath(env: NodeJS.ProcessEnv, options?: RegistryPathOptions): string; export declare function resolveRunxRegistryTarget(env: NodeJS.ProcessEnv, options?: RegistryPathOptions): RunxRegistryTarget; export declare function resolveRunxOfficialSkillsDir(env: NodeJS.ProcessEnv, options?: PathResolutionOptions): string; export declare function resolveRunxProjectPinsPath(env: NodeJS.ProcessEnv, options?: PathResolutionOptions): string; export declare function loadLocalSkillPackage(skillPath: string): Promise; export declare function resolveLocalSkillProfile(skillPath: string, skillName: string): Promise; export declare function loadRunxConfigFile(configPath: string): Promise; export declare function writeRunxConfigFile(configPath: string, config: RunxConfigFile): Promise; export declare function updateRunxConfigValue(config: RunxConfigFile, key: RunxConfigKey, value: string, configDir: string): Promise; export declare function lookupRunxConfigValue(config: RunxConfigFile, key: RunxConfigKey): unknown; export declare function maskRunxConfigFile(config: RunxConfigFile): RunxConfigFile; export declare function loadLocalAgentApiKey(configDir: string, ref: string): Promise; export declare function isRemoteRegistryUrl(value: string | undefined): value is string; export {};