import type { SessionUser } from "./Auth/AuthTypes"; import type { InitResult, OnReadyCallbackBasic } from "./initProstgles"; import { Prostgles } from "./Prostgles"; import type { ProstglesInitOptions } from "./ProstglesTypes"; function prostgles( params: ProstglesInitOptions, ) { const prgl = new Prostgles(params as ProstglesInitOptions); return prgl.init(params.onReady as unknown as OnReadyCallbackBasic, { type: "init", }) as unknown as Promise>; } export * from "./PublishParser/defineServerFunction"; export * from "./Auth/AuthTypes"; export type { PublishParams } from "./PublishParser/publishTypesAndUtils"; export type { DBOFullyTyped } from "./DBSchemaBuilder/DBSchemaBuilder"; export type { DBHandlerServer } from "./Prostgles"; export type { CloudClient, LocalConfig } from "./FileManager/FileManager"; export type { DB } from "./initProstgles"; export type * from "./TableConfig/TableConfig"; export * from "./Auth/utils/upsertNamedExpressMiddleware"; export type { RequestWithUser } from "./Auth/middleware/userContextMiddleware"; export default prostgles;