import type { Server } from "http"; import type { Socket } from "net"; import { type ArgsType, type Rec, type Result } from "@agyemanjp/standard"; import type { StorageProvider } from "@agyemanjp/storage"; import type { Route } from "./_routing"; import type { getEntityStoreProviders } from './_storage'; /** Create express app configured with routes */ export declare function appFactory(env: { databaseUrl: string; objectStorageRootUrl: string; objectStorageDefaultBucket: string; objectStorageAccessKeySecret: string; objectStorageAccessKeyId: string; objectStorageRegion: string; port: number; }, routesFactory: (args: { storage: Rec>>; staticPath: string; env: Rec; }) => Result, storageFactory: (args: ArgsType[0]) => Rec>>): import("@agyemanjp/standard").Err> | import("@agyemanjp/standard").Ok>; /** Configure abnormal process termination handlers */ export declare function cfgProcTermination(appName: string, server: Server, sockets: Rec): void;