Commit compiled dist for git installs

This commit is contained in:
2026-04-18 20:11:29 +10:00
parent 234d269283
commit 15c9afd630
29 changed files with 1070 additions and 1 deletions

27
dist/interfaces.d.ts vendored Normal file
View File

@@ -0,0 +1,27 @@
/**
* Minimal key-value storage adapter.
* Pass `localStorage` in browser environments, or any Map-backed adapter for Node.js / tests.
*/
export interface IPluginStorage {
getItem(key: string): string | null;
setItem(key: string, value: string): void;
}
/**
* Minimal event emitter interface for the plugin events API.
* Compatible with Node.js EventEmitter, matrix-js-sdk MatrixClient, and similar clients.
*/
export interface IPluginEventClient {
on(event: string, handler: (...args: any[]) => void): void;
off(event: string, handler: (...args: any[]) => void): void;
}
/**
* In-memory storage implementation — used as the default when no storage adapter is provided.
*/
export declare class MemoryStorage implements IPluginStorage {
private readonly store;
/** @inheritdoc */
getItem(key: string): string | null;
/** @inheritdoc */
setItem(key: string, value: string): void;
}
//# sourceMappingURL=interfaces.d.ts.map