import { IRecordID } from '../../shared/types.js'; import { ITempMemoryStore } from './types.js'; /** * Temp Memory Store * Object in charge of storing and managing records in a local property. */ declare class TempMemoryStore implements ITempMemoryStore { readonly id: string; private readonly __data; constructor(id: string); /** * Retrieves a record by ID. If none, retrieves the data stored at the root of the store. * @param id? * @returns T | undefined */ get(id?: IRecordID): T | undefined; /** * Writes data on a record based on its ID. If none is provided, it writes at the root of the * store. * @param id * @param data */ set(id: IRecordID, data: T): void; /** * Deletes the record based on its ID. If none is provided, it deletes the root of the store. * @param id? */ del(id?: IRecordID): void; } export { type ITempMemoryStore, TempMemoryStore, };