/** * Acquire a lock on a file or directory, creating the resource if it does not exist. * @param fileOrDirPath Path to the file or directory to lock. * @param signal Abort signal to release the lock. * @returns A function that releases the lock. */ export declare function acquireFileLock(fileOrDirPath: string, signal?: AbortSignal): Promise<() => void>;