import { a as Storage, d as StorageStartOptions, T as Trace, S as Selector, e as CreateResourceOptions, I as InstanceFor, M as MetadataFor, f as DatabaseMetadata, N as NamespaceMetadata } from '../shared/hive.DlaRxYsk.js'; import { RowObject, RowValues, Transaction, TransactionResult } from '../sdk/transaction.js'; import { ByteStream } from '../streams/index.js'; import '../sdk/logger.js'; import 'zod'; //#region src/index.d.ts declare class MemoryStorage extends Storage { static readonly name = "memory-storage"; /** * Runtime-specific implementation of SQLite. */ private driver; /** * EventEmitter instance to use for emitting events. * * @default null */ private events; /** * Logger instance to use for logging. * * @default null */ private logger; /** * Map containing all existing Resources, their metadata and for Databases, * also their `Connection` instance. */ private readonly resources; start(opts: Omit & { logger?: StorageStartOptions['logger'] | null | undefined; onError?: StorageStartOptions['onError'] | null | undefined; trace?: Trace | null | undefined; emit?: boolean | null | undefined; }): Promise; stop(opts?: { trace?: Trace | null | undefined; emit?: boolean | null | undefined; }): Promise; create(selector: S, opts?: CreateResourceOptions): Promise<{ resource: InstanceFor; metadata: MetadataFor; }>; list(opts?: { parent?: Selector<'namespace' | 'database'> | null | undefined; trace?: Trace | null | undefined; emit?: boolean | null | undefined; }): Promise>; has(selector: Selector, opts?: { trace?: Trace | null | undefined; emit?: boolean | null | undefined; }): Promise; get(selector: S, opts?: { trace?: Trace | null | undefined; emit?: boolean | null | undefined; }): Promise<{ resource: InstanceFor; metadata: MetadataFor; }>; getMetadata(selector: S, opts?: { trace?: Trace | null | undefined; emit?: boolean | null | undefined; }): Promise>; getContents(selector: Selector<'database' | 'snapshot' | 'branch'>, opts?: { trace?: Trace | null | undefined; emit?: boolean | null | undefined; }): Promise<{ contents: ByteStream; metadata: DatabaseMetadata; }>; setContents(selector: Selector<'database' | 'snapshot' | 'branch'>, contents: ByteStream | Uint8Array | Selector<'database' | 'snapshot' | 'branch'>, opts?: { trace?: Trace | null | undefined; emit?: boolean | null | undefined; }): Promise; query = ReadonlyArray>(selector: Selector<'database' | 'snapshot' | 'branch'>, transaction: Transaction, opts?: { trace?: Trace | null | undefined; emit?: boolean | null | undefined; }): Promise>; free(selector: Selector, opts?: { trace?: Trace | null | undefined; emit?: boolean | null | undefined; }): Promise; delete(selector: Selector, opts?: { trace?: Trace | null | undefined; emit?: boolean | null | undefined; }): Promise; } export { MemoryStorage };