/** * @file Cache write entrypoints — `put` inserts or replaces by key and * `remove` deletes a single key. Both reject wildcards; for pattern * deletes use `clear({ prefix: 'foo*' })`. */ import type { PutOptions } from './types.js'; /** * Put data into the Socket shared cache with a key. * * @example * ;```typescript * await put('socket-sdk:scans:abc123', Buffer.from('result data')) * ``` * * @throws {TypeError} If key contains wildcards (*) */ export declare function put(key: string, data: string | Buffer, options?: PutOptions | undefined): Promise<{ integrity: string; size: number; }>; /** * Remove an entry from the Socket shared cache by key. * * @example * ;```typescript * await remove('socket-sdk:scans:abc123') * ``` * * @throws {TypeError} If key contains wildcards (*) */ export declare function remove(key: string): Promise;