import type { ExecuteStatementCommandOutput, RDSDataClient } from '@aws-sdk/client-rds-data'; import { entityKind } from "../../entity.js"; import type { Logger } from "../../logger.js"; import { type PgDialect, PgPreparedQuery, type PgQueryResultHKT, PgSession, PgTransaction, type PgTransactionConfig, type PreparedQueryConfig } from "../../pg-core/index.js"; import type { SelectedFieldsOrdered } from "../../pg-core/query-builders/select.types.js"; import type { RelationalSchemaConfig, TablesRelationalConfig } from "../../relations.js"; import { type QueryTypingsValue, type QueryWithTypings, type SQL } from "../../sql/sql.js"; export type AwsDataApiClient = RDSDataClient; export declare class AwsDataApiPreparedQuery; }> extends PgPreparedQuery { private client; private params; private typings; private options; private fields; private _isResponseInArrayMode; private customResultMapper?; static readonly [entityKind]: string; private rawQuery; constructor(client: AwsDataApiClient, queryString: string, params: unknown[], typings: QueryTypingsValue[], options: AwsDataApiSessionOptions, fields: SelectedFieldsOrdered | undefined, /** @internal */ transactionId: string | undefined, _isResponseInArrayMode: boolean, customResultMapper?: ((rows: unknown[][]) => T["execute"]) | undefined); execute(placeholderValues?: Record | undefined): Promise; all(placeholderValues?: Record | undefined): Promise; values(placeholderValues?: Record): Promise; } export interface AwsDataApiSessionOptions { logger?: Logger; database: string; resourceArn: string; secretArn: string; } export declare class AwsDataApiSession, TSchema extends TablesRelationalConfig> extends PgSession { private schema; private options; static readonly [entityKind]: string; constructor( /** @internal */ client: AwsDataApiClient, dialect: PgDialect, schema: RelationalSchemaConfig | undefined, options: AwsDataApiSessionOptions, /** @internal */ transactionId: string | undefined); prepareQuery; } = PreparedQueryConfig & { values: AwsDataApiPgQueryResult; }>(query: QueryWithTypings, fields: SelectedFieldsOrdered | undefined, name: string | undefined, isResponseInArrayMode: boolean, customResultMapper?: (rows: unknown[][]) => T['execute'], transactionId?: string): AwsDataApiPreparedQuery; execute(query: SQL): Promise; transaction(transaction: (tx: AwsDataApiTransaction) => Promise, config?: PgTransactionConfig | undefined): Promise; } export declare class AwsDataApiTransaction, TSchema extends TablesRelationalConfig> extends PgTransaction { static readonly [entityKind]: string; transaction(transaction: (tx: AwsDataApiTransaction) => Promise): Promise; } export type AwsDataApiPgQueryResult = ExecuteStatementCommandOutput & { rows: T[]; }; export interface AwsDataApiPgQueryResultHKT extends PgQueryResultHKT { type: AwsDataApiPgQueryResult; }