/** Create a tracked temp directory. Auto-cleaned on process exit. */
export declare function createTempDir(prefix?: string): string;
/** Manually remove and untrack a temp directory. */
export declare function removeTempDir(dir: string): void;
/** Run a function with a scoped temp dir. Always cleaned up, even on error. */
export declare function withTempDir<T>(prefix: string, fn: (dir: string) => Promise<T> | T): Promise<T>;
/** Synchronous version of withTempDir. */
export declare function withTempDirSync<T>(prefix: string, fn: (dir: string) => T): T;
/** Create a file inside a directory, creating intermediate dirs as needed. */
export declare function createTestFile(baseDir: string, relativePath: string, content: string): string;
/** Create a directory inside a base dir, creating intermediates as needed. */
export declare function createTestDir(baseDir: string, relativePath: string): string;
