///
import type { BufferLocked } from '../types.js';
/**
* Locks a buffer so that it cannot be swapped.
* On systems that support it, the data will not be included in core dumps.
* Calling this is idempotent.
*/
declare function bufferLock(data: T, strict?: boolean): asserts data is BufferLocked;
/**
* Unlocks locked buffer.
* This will zero out the data.
* TS does not allow unbranding of `BufferLocked`.
* If the buffer is not locked, it will just zero out the data.
*/
declare function bufferUnlock>(data: BufferLocked): void;
export { bufferLock, bufferUnlock };