import { type XDeferSync } from '@zokugun/xtry/sync'; import { FsError } from '../types/fs-error.cjs'; import { type FsResult } from '../types/fs-result.cjs'; import { type MakeTempDirOptions } from './options.cjs'; export declare function makeTempDir(options: MakeTempDirOptions & { defer: true; }): FsResult<{ path: string; remove: XDeferSync; }>; export declare function makeTempDir(options?: MakeTempDirOptions & { defer?: false; }): FsResult; export declare function makeTempDir(options?: MakeTempDirOptions): FsResult; }>;