import type { ImageGenSettings } from './types.js'; export declare const SETTINGS_KEY = "pi-image-gen"; export declare const TRUSTED_CWD_ENV = "PI_IMAGE_GEN_TRUSTED_CWD"; export type SettingsScope = 'global' | 'project'; export declare function imageGenSettingsPath(cwd: string, scope: SettingsScope): string; export declare function mergeImageGenSettings(base: ImageGenSettings, next: ImageGenSettings): ImageGenSettings; /** Runtime reads are fail-soft; project settings participate only after Pi trust. */ export declare function loadImageGenSettings(cwd: string, projectTrusted?: boolean): ImageGenSettings; /** Strict layer read for an interactive write flow. */ export declare function readImageGenSettingsLayer(cwd: string, scope: SettingsScope): ImageGenSettings; /** * Atomically mutate one settings layer while preserving unrelated settings. * The latest file is re-read at commit time so unrelated concurrent changes survive. */ export declare function updateImageGenSettings(cwd: string, scope: SettingsScope, mutate: (current: ImageGenSettings) => ImageGenSettings): string; /** Pass Pi's authoritative session trust decision to package CLI child processes. */ export declare function exposeProjectTrustToCli(cwd: string, trusted: boolean): void; export declare function isCliProjectTrusted(cwd: string): boolean; //# sourceMappingURL=settings.d.ts.map