UNPKG

@artinet/sdk

Version:

A TypeScript SDK for building collaborative AI agents.

21 lines (20 loc) 706 B
/** * Copyright 2025 The Artinet Project * SPDX-License-Identifier: Apache-2.0 */ /** * Manager should optionally take a persistent storage object as a constructor parameter, * That way we don't need to re-implement the same caching logic for each derived manager. */ export declare abstract class Manager<T> { private _data; private throwOnSet; constructor(_data?: Map<string, T>, throwOnSet?: boolean); get data(): Map<string, T>; set(id: string, data?: T): Promise<void>; get(id: string): Promise<T | undefined>; delete(id: string): Promise<void>; has(id: string): Promise<boolean>; list(): Promise<T[]>; } export declare const ResourceManager: typeof Manager;