import { Pool } from "pg"; import { Authorization } from "./model"; import { Explanation } from "./util/explanations"; import { ReadonlyDataLoaderExecutor } from "./loader"; export interface Context { readonly realm: string; readonly base: string; readonly privateKey: string; readonly publicKeys: ReadonlyArray; readonly codeValidityDuration: number; readonly jwtValidityDuration: number; readonly sendMail: (options: { readonly to: string; readonly subject: string; readonly text: string; readonly html: string; readonly from?: string; }) => Promise; readonly explanations: ReadonlyArray; executor: ReadonlyDataLoaderExecutor; authorization: null | Authorization; }