import type { Client, ResultSet, Transaction } from '@libsql/client'; import type { BatchItem as BatchItem } from "../batch.js"; import { entityKind } from "../entity.js"; import type { Logger } from "../logger.js"; import type { RelationalSchemaConfig, TablesRelationalConfig } from "../relations.js"; import { type Query } from "../sql/sql.js"; import type { SQLiteAsyncDialect } from "../sqlite-core/dialect.js"; import { SQLiteTransaction } from "../sqlite-core/index.js"; import type { SelectedFieldsOrdered } from "../sqlite-core/query-builders/select.types.js"; import type { PreparedQueryConfig as PreparedQueryConfigBase, SQLiteExecuteMethod, SQLiteTransactionConfig } from "../sqlite-core/session.js"; import { SQLitePreparedQuery, SQLiteSession } from "../sqlite-core/session.js"; export interface LibSQLSessionOptions { logger?: Logger; } type PreparedQueryConfig = Omit; export declare class LibSQLSession, TSchema extends TablesRelationalConfig> extends SQLiteSession<'async', ResultSet, TFullSchema, TSchema> { private client; private schema; private options; private tx; static readonly [entityKind]: string; private logger; constructor(client: Client, dialect: SQLiteAsyncDialect, schema: RelationalSchemaConfig | undefined, options: LibSQLSessionOptions, tx: Transaction | undefined); prepareQuery>(query: Query, fields: SelectedFieldsOrdered | undefined, executeMethod: SQLiteExecuteMethod, isResponseInArrayMode: boolean, customResultMapper?: (rows: unknown[][]) => unknown): LibSQLPreparedQuery; batch[] | readonly BatchItem<'sqlite'>[]>(queries: T): Promise; migrate[] | readonly BatchItem<'sqlite'>[]>(queries: T): Promise; transaction(transaction: (db: LibSQLTransaction) => T | Promise, _config?: SQLiteTransactionConfig): Promise; extractRawAllValueFromBatchResult(result: unknown): unknown; extractRawGetValueFromBatchResult(result: unknown): unknown; extractRawValuesValueFromBatchResult(result: unknown): unknown; } export declare class LibSQLTransaction, TSchema extends TablesRelationalConfig> extends SQLiteTransaction<'async', ResultSet, TFullSchema, TSchema> { static readonly [entityKind]: string; transaction(transaction: (tx: LibSQLTransaction) => Promise): Promise; } export declare class LibSQLPreparedQuery extends SQLitePreparedQuery<{ type: 'async'; run: ResultSet; all: T['all']; get: T['get']; values: T['values']; execute: T['execute']; }> { private client; private logger; private tx; private _isResponseInArrayMode; static readonly [entityKind]: string; constructor(client: Client, query: Query, logger: Logger, /** @internal */ fields: SelectedFieldsOrdered | undefined, tx: Transaction | undefined, executeMethod: SQLiteExecuteMethod, _isResponseInArrayMode: boolean, /** @internal */ customResultMapper?: ((rows: unknown[][], mapColumnValue?: (value: unknown) => unknown) => unknown) | undefined); run(placeholderValues?: Record): Promise; all(placeholderValues?: Record): Promise; mapAllResult(rows: unknown, isFromBatch?: boolean): unknown; get(placeholderValues?: Record): Promise; mapGetResult(rows: unknown, isFromBatch?: boolean): unknown; values(placeholderValues?: Record): Promise; } export {};