/** * Centralized path configuration for cdp-tools output directories * * All data defaults to working directory (/.cdp-tools/). * Use global: true to save to ~/.cdp-tools/ instead. * If cwd is invalid (e.g., "/"), falls back to global automatically. */ import { z } from 'zod'; declare const pathOptionsSchema: z.ZodObject<{ global: z.ZodOptional; }, "strict", z.ZodTypeAny, { global?: boolean | undefined; }, { global?: boolean | undefined; }>; interface PathConfig { globalBase: string; workingDirBase: string | null; tempBase: string; } /** * Initialize path configuration at startup. * Called automatically on first path request, but can be called explicitly for early initialization. */ export declare function initializePaths(): PathConfig; /** * Get path for cdp-tools data. * Defaults to working directory, use global: true for ~/.cdp-tools/ * * @param segments - Path segments to join (e.g., 'logs', 'debug.log') * @param options - { global: true } to use ~/.cdp-tools/ instead of cwd * @returns Full path like /project/.cdp-tools/logs/debug.log */ export declare function getOutputPath(...args: [...string[]] | [...string[], z.infer]): string; /** * Get config path with backwards compatibility. * Checks cwd first (if valid and config exists there), then global. * * @returns Path to config.json */ export declare function getConfigPath(): string; /** * Get path for saving new config. * * @param options - { global: true } to save to ~/.cdp-tools/ (default: working directory) * @returns Path to config.json */ export declare function getConfigSavePath(options?: { global?: boolean; }): string; /** * Get path for temporary/ephemeral data. * Uses system temp directory. * * @param segments - Path segments to join (e.g., 'a4-page.css') * @returns Full path like /tmp/cdp-tools/a4-page.css */ export declare function getTempPath(...segments: string[]): string; /** * Check if working directory storage is available (cwd is valid). */ export declare function hasWorkingDirStorage(): boolean; /** @deprecated Use getOutputPath() */ export declare function getWorkingDirPath(...segments: string[]): string; /** @deprecated Use getOutputPath(...segments, { global: true }) */ export declare function getGlobalPath(...segments: string[]): string; /** @deprecated Use getOutputPath() */ export declare const getHomeOutputPath: typeof getGlobalPath; export {}; //# sourceMappingURL=paths.d.ts.map