import * as hana from "@sap/hana-client"; declare module "fastify" { interface FastifyInstance { hana: typeof hana; hanaPool: hana.ConnectionPool; executeQuery: (query: string, parameters?: ExecuteQueryParameters) => Promise; executeInTransaction: (actions: (conn: hana.Connection) => Promise) => Promise; } } export type ExecuteQueryParameters = { [key: string]: any; } | any[]; export type HanaClientExplicitPoolParams = { maxConnectedOrPooled?: number; maxPooledIdleTime?: number; pingCheck?: boolean; poolCapacity?: number; }; export interface HanaOptions { host: string; port: string; user: string; password: string; poolOptions?: HanaClientExplicitPoolParams; }