import { BaseObserver, DBAdapterListener, DBAdapter, DBLockOptions, LockContext, QueryResult, Transaction, Mutex } from '@powersync/common'; /** * Implements a Mock DB adapter for use in Server Side Rendering (SSR). * This adapter will return empty results for queries, which will allow * server rendered views to initially generate scaffolding components */ export declare class SSRDBAdapter extends BaseObserver implements DBAdapter { name: string; readMutex: Mutex; writeMutex: Mutex; constructor(); close(): void; readLock(fn: (tx: LockContext) => Promise, options?: DBLockOptions): Promise; readTransaction(fn: (tx: Transaction) => Promise, options?: DBLockOptions): Promise; writeLock(fn: (tx: LockContext) => Promise, options?: DBLockOptions): Promise; writeTransaction(fn: (tx: Transaction) => Promise, options?: DBLockOptions): Promise; execute(query: string, params?: any[]): Promise; executeRaw(query: string, params?: any[]): Promise; executeBatch(query: string, params?: any[][]): Promise; getAll(sql: string, parameters?: any[]): Promise; getOptional(sql: string, parameters?: any[] | undefined): Promise; get(sql: string, parameters?: any[] | undefined): Promise; /** * Generates a mock context for use in read/write transactions. * `this` already mocks most of the API, commit and rollback mocks * are added here */ private generateMockTransactionContext; refreshSchema(): Promise; }