export declare const isBunBinary: boolean; /** * Detect if we're running from a single-file bundle produced by `bun run bundle:dev`. * The bundle build inlines this env var via `--define`, so it is a compile-time * constant there and undefined everywhere else. */ export declare const isBundledBuild: boolean; /** Detect if Bun is the runtime (compiled binary or bun run) */ export declare const isBunRuntime: boolean; export type { InstallMethod, SelfUpdateCommand, SelfUpdateTarget } from "./config-self-update.ts"; export declare function detectInstallMethod(): import("./config-self-update.ts").InstallMethod; export declare function getSelfUpdateCommand(packageName: string, npmCommand?: string[], updateTarget?: import("./config-self-update.ts").SelfUpdateTarget): import("./config-self-update.ts").SelfUpdateCommand | undefined; export declare function getSelfUpdateUnavailableInstruction(packageName: string, npmCommand?: string[], updateTarget?: import("./config-self-update.ts").SelfUpdateTarget): string; export declare function getUpdateInstruction(packageName: string): string; /** * Get the base directory for resolving package assets (themes, package.json, README.md, CHANGELOG.md). * - For Bun binary: returns the directory containing the executable * - For Node.js (dist/): returns __dirname (the dist/ directory) * - For source (src/): returns parent directory (the package root) */ export declare function getPackageDir(): string; export declare function getCodemodeWorkerUrl(): URL | undefined; export declare function getQuickJSWasmPath(): string; export type InstallChange = { kind: "updated"; version: string; } | { kind: "removed"; }; export declare function detectInstallChange(packageJsonPath?: string | undefined): InstallChange | undefined; /** * Get path to built-in themes directory (shipped with package) * - For Bun binary: theme/ next to executable * - For Node.js (dist/): dist/modes/interactive/theme/ * - For source (src/): src/modes/interactive/theme/ */ export declare function getThemesDir(): string; /** * Get path to HTML export template directory (shipped with package) * - For Bun binary: export-html/ next to executable * - For Node.js (dist/): dist/core/export-html/ * - For source (src/): src/core/export-html/ */ export declare function getExportTemplateDir(): string; /** Get path to package.json */ export declare function getPackageJsonPath(): string; /** Get path to README.md */ export declare function getReadmePath(): string; /** Get path to docs directory */ export declare function getDocsPath(): string; /** Get path to examples directory */ export declare function getExamplesPath(): string; /** Get path to CHANGELOG.md */ export declare function getChangelogPath(): string; /** * Get path to built-in interactive assets directory. * - For Bun binary: assets/ next to executable * - For Node.js (dist/): dist/modes/interactive/assets/ * - For source (src/): src/modes/interactive/assets/ */ export declare function getInteractiveAssetsDir(): string; /** Get path to a bundled interactive asset */ export declare function getBundledInteractiveAssetPath(name: string): string; export declare const PACKAGE_NAME: string; export declare const APP_NAME: string; export declare const APP_TITLE: string; export declare const CONFIG_DIR_NAME: string; export declare const LEGACY_CONFIG_DIR_NAME = ".pi"; export declare const CONFIG_DIR_NAMES: readonly string[]; export declare const VERSION: string; export declare const CHANGELOG_URL: string | undefined; export declare const LEGACY_ENV_PREFIX = "PI"; export declare const ENV_AGENT_DIR: string; export declare const ENV_SESSION_DIR: string; export declare const ENV_PACKAGE_DIR: string; export declare const ENV_OFFLINE: string; export declare const ENV_SKIP_VERSION_CHECK: string; export declare const ENV_STARTUP_BENCHMARK: string; export declare const ENV_TELEMETRY: string; export declare const ENV_SHARE_VIEWER_URL: string; export declare const ENV_CLEAR_ON_SHRINK: string; export declare const ENV_HARDWARE_CURSOR: string; export declare const ENV_CLIPBOARD_OSC52: string; export declare const ENV_TIMING: string; export declare const ENV_HEAP_MB: string; export declare const ENV_CODEMODE_MAX_WORKERS: string; export declare const WORKFLOW_STAGE_SUBAGENT_GUARD_ENV: string; export declare function getEnvNames(name: string): string[]; export declare function getEnvValue(name: string): string | undefined; export declare function hasEnvValue(name: string): boolean; export declare function setEnvValue(name: string, value: string): void; export declare function expandTildePath(path: string): string; export declare const VERSION_ADOPTION_ENDPOINT = "https://atomic-version-adoption.bastani-atomic.workers.dev/v1/version-adoption"; /** Get the share viewer URL for a gist ID */ export declare function getShareViewerUrl(gistId: string): string; /** Get the agent config directory (e.g., ~/.atomic/agent/) */ export declare function getAgentDir(): string; /** Get the legacy pi agent config directory (e.g., ~/.pi/agent/) */ export declare function getLegacyAgentDir(): string; /** Get agent config directories in precedence order (primary first, then legacy). */ export declare function getAgentDirs(): string[]; /** Get user config root directories in precedence order (primary first, then legacy). */ export declare function getUserConfigDirs(): string[]; /** Get project config directories in precedence order (primary first, then legacy). */ export declare function getProjectConfigDirs(cwd: string): string[]; /** Get a path inside every user config root directory. */ export declare function getUserConfigPaths(...segments: string[]): string[]; /** Get a path inside every agent config directory. */ export declare function getAgentConfigPaths(...segments: string[]): string[]; /** Get a path inside every project config directory. */ export declare function getProjectConfigPaths(cwd: string, ...segments: string[]): string[]; /** Model config paths from highest to lowest precedence: Atomic project/global, then Pi project/global. */ export declare function getModelsConfigPaths(cwd: string, agentDir?: string, includeProject?: boolean): string[]; /** Get path to user's custom themes directory */ export declare function getCustomThemesDir(): string; /** Get path to models.json */ export declare function getModelsPath(): string; /** Get path to auth.json */ export declare function getAuthPath(): string; /** Get path to settings.json */ export declare function getSettingsPath(): string; /** Get path to tools directory */ export declare function getToolsDir(): string; /** Get path to managed binaries directory (fd, rg) */ export declare function getBinDir(): string; /** * Get path to the extension transpile cache directory (jiti fsCache). * Scoped by version and transform format so neither a release upgrade nor a * loader transform change reads stale transpiled output. */ export declare function getExtensionTranspileCacheDir(): string; /** Get path to prompt templates directory */ export declare function getPromptsDir(): string; /** Get path to sessions directory */ export declare function getSessionsDir(): string; /** Get path to debug log file */ export declare function getDebugLogPath(): string; //# sourceMappingURL=config.d.ts.map