import { type ConfigLayer, type ConfigSetOptions, type PeaksConfig, type TokenRef, type WorkspaceConfig } from './config-types.js'; import { getUserConfigPath } from './config-safety.js'; import { containsSensitiveConfigValue, isLegacyConfigKey, isSensitiveConfigPath, redactConfigSecrets, type RedactedConfigValue } from './config-validation.js'; export { resolveProjectRootForConfig, resolveCanonicalProjectRoot } from './config-safety.js'; export { getConfig } from './config-get.js'; export { loadGlobalConfig } from './config-global-loader.js'; export { addWorkspace, ensureWorkspaceConfigForCurrentPath, ensureWorkspaceConfigForPath, getCurrentWorkspaceConfig, getWorkspaceConfig, getWorkspaceConfigForCurrentPath, getWorkspaceConfigForPath, removeWorkspace, setCurrentWorkspace } from './config-workspace.js'; export { containsSensitiveConfigValue, isLegacyConfigKey, isSensitiveConfigPath, redactConfigSecrets }; export type { RedactedConfigValue }; export declare function isConfigLayer(value: string): value is ConfigLayer; /** * Machine-scoped context-window override key, the config twin of the * `PEAKS_CONTEXT_WINDOW_TOKENS` env var (slice * `peaks config set --key context.windowTokens --value ` * (user layer) so the user pins it once instead of exporting an env var * in every shell. */ export declare const CONTEXT_WINDOW_TOKENS_CONFIG_KEY = "context.windowTokens"; /** * Read the raw `context.windowTokens` value from the merged config, project * layer over user layer (most specific wins). Returns the RAW value — * validation lives in the context-window resolver so exactly one warning is * emitted per bad value. Returns `undefined` when absent or unreadable; * never throws (a corrupt config must not crash a context probe). */ export declare function readContextWindowTokensOverride(projectRoot?: string | null): unknown; export declare function bootstrapProjectLanguageConfig(projectRoot: string, language: string): void; export declare function readConfig(projectRoot?: string | null): PeaksConfig; export declare function writeConfig(partial: Partial, layer?: ConfigLayer): void; export declare function setConfig(options: ConfigSetOptions): void; export type { TokenRef, WorkspaceConfig, PeaksConfig, ConfigLayer }; export { getUserConfigPath }; export { globalConfigPath } from './config-migration.js';