import type { PayloadRequest } from '../types/index.js';
type Args = {
    /**
     * A path the caller has already removed, so the redundant unlink is skipped.
     */
    alreadyUnlinkedPath?: string;
    req: PayloadRequest;
};
/**
 * Removes the temp file a client upload materialized, if it is still on disk. Logs rather than
 * throws, so cleanup can never replace a response or mask the error that a caller is handling.
 *
 * The path is tracked on `req.context` rather than read back off `req.file` because the file
 * can outlive both: plugin-cloud-storage's afterChange hook clears `req.file` before cleanup
 * runs, and the request parser materializes the file for whatever `collectionSlug` the multipart
 * field names, which does not have to be a collection the endpoint writes a document to.
 */
export declare const unlinkClientUploadTempFile: (args: Args) => Promise<void>;
export {};
//# sourceMappingURL=unlinkClientUploadTempFile.d.ts.map