/** * Required prefix for managed wp-typia temporary directories. */ export declare const WP_TYPIA_TEMP_ROOT_PREFIX = "wp-typia-"; /** * Default age threshold for pruning stale wp-typia temp roots. */ export declare const STALE_TEMP_ROOT_MAX_AGE_MS: number; type TempRootOptions = { maxAgeMs?: number; now?: number; tmpDir?: string; }; /** * Remove a managed temp root and stop tracking it for process-level cleanup. * * @param tempRoot Absolute temporary directory path to remove. */ export declare function cleanupManagedTempRoot(tempRoot: string): Promise; /** * Remove stale `wp-typia-*` temp directories from the target temp root. * * @param options Optional temp directory, age threshold, and clock override. * @returns Absolute temp-root paths removed during the cleanup pass. */ export declare function cleanupStaleTempRoots({ maxAgeMs, now, tmpDir }?: TempRootOptions): Promise; /** * Create a managed wp-typia temp root and install process cleanup handlers. * * @param prefix Temp directory prefix. Must start with `wp-typia-`. * @param options Optional temp directory override. * @returns The created temp-root path plus an async cleanup helper. */ export declare function createManagedTempRoot(prefix: string, options?: Pick): Promise<{ cleanup: () => Promise; path: string; }>; /** * Snapshot the currently tracked temp roots for diagnostics and tests. * * @returns Absolute paths for temp roots currently registered for cleanup. */ export declare function getTrackedTempRoots(): string[]; export {};