export type JsonValue = null | boolean | number | string | JsonValue[] | { [key: string]: JsonValue }; export interface StateRepository { read(key: string): Promise; write(key: string, value: T): Promise; } export function isArrayState(value: unknown): value is unknown[] { return Array.isArray(value); } export * as sqliteSchema from './drizzle/sqlite.js'; export * as postgresSchema from './drizzle/postgres.js';