import { a as PiConfigPaths, i as PiConfigLoadOptions, r as PiConfig } from "./piConfig-Bx26HMb_.mjs"; //#region src/services/imageSettings/index.d.ts /** Pi's own cap, from its resize core; also the largest value worth writing. */ declare const DEFAULT_IMAGE_MAX_DIMENSION = 2000; /** Below this a screenshot stops being readable, which is what reads are for. */ declare const MIN_IMAGE_MAX_DIMENSION = 256; interface PiImageSettings { /** Pi's own toggle. Unset is on, matching Pi's default. */ autoResize: boolean; /** The longest edge an image keeps once resizing is on. */ maxDimension: number; } /** The written form of a change; an absent field leaves that key alone. */ interface PiImageSettingsUpdate { autoResize?: boolean; maxDimension?: number; } declare function clampImageMaxDimension(value: number): number; /** Resolves the effective limits, defaulting anything absent or unusable. */ declare function parsePiImageSettings(config: PiConfig): PiImageSettings; //#endregion //#region src/services/piConfig/index.d.ts declare function piConfigPaths(repoRoot: string, homeDirectory?: string, agentDirectory?: string): PiConfigPaths; declare function loadPiConfig(options: PiConfigLoadOptions): PiConfig; declare function loadPiConfigAsync(options: PiConfigLoadOptions): Promise; /** The file a change lands in; Pi's own settings toggle writes the same one. */ declare function piImageSettingsPath(homeDirectory?: string): string; declare function loadPiImageSettings(homeDirectory?: string): PiImageSettings; /** * Writes the changed keys back and reports the limits that now apply. * * Read-modify-write on Pi's own file, so a save races a concurrent Pi settings * save rather than merging with it. Pi writes only the fields its UI touched, * as this does, which keeps the window to the one setting being changed on * both sides at once. */ declare function savePiImageSettings(update: PiImageSettingsUpdate, homeDirectory?: string): PiImageSettings; //#endregion export { piImageSettingsPath as a, MIN_IMAGE_MAX_DIMENSION as c, clampImageMaxDimension as d, parsePiImageSettings as f, piConfigPaths as i, PiImageSettings as l, loadPiConfigAsync as n, savePiImageSettings as o, loadPiImageSettings as r, DEFAULT_IMAGE_MAX_DIMENSION as s, loadPiConfig as t, PiImageSettingsUpdate as u }; //# sourceMappingURL=index-CVlciCJF.d.mts.map