import type { Finalizable, Initializable, KeyValueStorage } from '@solid/community-server'; export interface BaseKeyValueStorageOptions { tableName?: string; namespace?: string; } export interface BaseKeyValueStorageRow { key: string; value: unknown; } export declare abstract class BaseKeyValueStorage implements KeyValueStorage, Initializable, Finalizable { protected readonly logger: import("global-logger-factory").Logger; protected readonly tableName: string; protected readonly namespace: string; private ready; protected constructor(options: BaseKeyValueStorageOptions); protected setReady(ready: Promise): void; initialize(): Promise; finalize(): Promise; has(key: string): Promise; get(key: string): Promise; set(key: string, value: T): Promise; delete(key: string): Promise; entries(): AsyncIterableIterator<[string, T]>; protected toStorageKey(key: string): string; protected validateAndSerialize(value: T, key: string): string; protected parseValue(raw: unknown): T | undefined; protected abstract closeStorage(): Promise; protected abstract hasValue(key: string): Promise; protected abstract selectValue(key: string): Promise; protected abstract upsertValue(key: string, payload: string): Promise; protected abstract deleteValue(key: string): Promise; protected abstract selectEntries(prefix: string): Promise; }