import { type CompactionMigrationInheritance } from "./config-migration.ts"; import { type CodexConversionConfig, type LunaCacheKeepaliveMinutes, type LunaCacheKeepaliveIntervalMinutes, type CacheKeepaliveIntervalMinutes } from "./config.ts"; export declare const CODEX_CONVERSION_CONFIG_BASENAME = "pi-codex-conversion.json"; export interface EffectiveCodexConversionConfigOptions { cwd: string; projectTrusted: boolean; globalConfigPath?: string | undefined; env?: NodeJS.ProcessEnv | undefined; } export type CodexConversionConfigScope = "global" | "folder"; export declare function getCodexConversionConfigPath(agentDir?: string): string; export declare function getProjectCodexConversionConfigPath(cwd: string): string; export declare function readCodexConversionConfig(configPath?: string): CodexConversionConfig; /** Read before normalization drops settings now owned by Notes. */ export declare function readLegacyCodexNotesConfig(options: Omit): { path: string; continuity: string; } | undefined; export declare function readProjectCodexConversionDocument(cwd: string, projectTrusted: boolean, inheritedCompaction?: CompactionMigrationInheritance): Record | undefined; export declare function hasFolderCodexConversionConfig(cwd: string, projectTrusted: boolean): boolean; export declare function readEffectiveCodexConversionConfig(options: EffectiveCodexConversionConfigOptions): CodexConversionConfig; export declare function readLayeredCodexConversionConfig(options: Omit): CodexConversionConfig; export declare function setProjectCodexCacheKeepalive(cwd: string, projectTrusted: boolean, enabled: boolean, intervalMinutes?: CacheKeepaliveIntervalMinutes): { ok: true; } | { ok: false; error: string; }; export declare function setGlobalCodexLunaCacheKeepalive(minutes: LunaCacheKeepaliveMinutes, globalConfigPath?: string, intervalMinutes?: LunaCacheKeepaliveIntervalMinutes): { ok: true; warning?: string; } | { ok: false; error: string; }; export declare function materializeFolderCodexConversionConfig(cwd: string, projectTrusted: boolean, globalConfigPath?: string | undefined): { ok: true; config: CodexConversionConfig; } | { ok: false; error: string; }; export declare function clearFolderCodexConversionConfig(cwd: string, projectTrusted: boolean): { ok: true; } | { ok: false; error: string; }; export declare function writeCodexConversionConfig(config: CodexConversionConfig, configPath?: string, folderScope?: boolean): { ok: true; warning?: string; } | { ok: false; error: string; };