import type { OPSQLiteConnection, QueryResult } from '@op-engineering/op-sqlite'; import { type Cache } from "../cache/core/index.cjs"; import type { WithCacheConfig } from "../cache/core/types.cjs"; import { entityKind } from "../entity.cjs"; import type { Logger } from "../logger.cjs"; import type { RelationalSchemaConfig, TablesRelationalConfig } from "../relations.cjs"; import { type Query } from "../sql/sql.cjs"; import type { SQLiteAsyncDialect } from "../sqlite-core/dialect.cjs"; import { SQLiteTransaction } from "../sqlite-core/index.cjs"; import type { SelectedFieldsOrdered } from "../sqlite-core/query-builders/select.types.cjs"; import { type PreparedQueryConfig as PreparedQueryConfigBase, type SQLiteExecuteMethod, SQLitePreparedQuery, SQLiteSession, type SQLiteTransactionConfig } from "../sqlite-core/session.cjs"; export interface OPSQLiteSessionOptions { logger?: Logger; cache?: Cache; } type PreparedQueryConfig = Omit; export declare class OPSQLiteSession, TSchema extends TablesRelationalConfig> extends SQLiteSession<'async', QueryResult, TFullSchema, TSchema> { private client; private schema; static readonly [entityKind]: string; private logger; private cache; constructor(client: OPSQLiteConnection, dialect: SQLiteAsyncDialect, schema: RelationalSchemaConfig | undefined, options?: OPSQLiteSessionOptions); prepareQuery>(query: Query, fields: SelectedFieldsOrdered | undefined, executeMethod: SQLiteExecuteMethod, isResponseInArrayMode: boolean, customResultMapper?: (rows: unknown[][]) => unknown, queryMetadata?: { type: 'select' | 'update' | 'delete' | 'insert'; tables: string[]; }, cacheConfig?: WithCacheConfig): OPSQLitePreparedQuery; transaction(transaction: (tx: OPSQLiteTransaction) => T, config?: SQLiteTransactionConfig): T; } export declare class OPSQLiteTransaction, TSchema extends TablesRelationalConfig> extends SQLiteTransaction<'async', QueryResult, TFullSchema, TSchema> { static readonly [entityKind]: string; transaction(transaction: (tx: OPSQLiteTransaction) => T): T; } export declare class OPSQLitePreparedQuery extends SQLitePreparedQuery<{ type: 'async'; run: QueryResult; all: T['all']; get: T['get']; values: T['values']; execute: T['execute']; }> { private client; private logger; private fields; private _isResponseInArrayMode; private customResultMapper?; static readonly [entityKind]: string; constructor(client: OPSQLiteConnection, query: Query, logger: Logger, cache: Cache, queryMetadata: { type: 'select' | 'update' | 'delete' | 'insert'; tables: string[]; } | undefined, cacheConfig: WithCacheConfig | undefined, fields: SelectedFieldsOrdered | undefined, executeMethod: SQLiteExecuteMethod, _isResponseInArrayMode: boolean, customResultMapper?: ((rows: unknown[][]) => unknown) | undefined); run(placeholderValues?: Record): Promise; all(placeholderValues?: Record): Promise; get(placeholderValues?: Record): Promise; values(placeholderValues?: Record): Promise; } export {};