mirror of
https://github.com/x1xhlol/system-prompts-and-models-of-ai-tools.git
synced 2025-12-17 05:55:11 +00:00
10 lines
317 B
TypeScript
10 lines
317 B
TypeScript
export declare class Registry<T> {
|
|
private readonly generateIdentifier;
|
|
private kv;
|
|
constructor(generateIdentifier: (v: T) => string);
|
|
register(value: T, identifier?: string): void;
|
|
clear(): void;
|
|
getIdentifier(value: T): string | undefined;
|
|
getValue(identifier: string): T | undefined;
|
|
}
|