/** Creates a fresh private epoch directory and returns the token its ownership marker holds. */
export declare function createSpoolDir(dir: string): Promise<string>;
/**
 * Removes `dir` only while it is still the private, marked directory `createSpoolDir` made. A
 * directory that is already gone leaves nothing to remove, so retirement settles as a no-op.
 */
export declare function removeSpoolDir(dir: string, token: string): Promise<void>;
//# sourceMappingURL=compact-spool-dir.d.ts.map