import { Disposable, Disposer } from "./interfaces"; import { ExitCode } from "./types/enums"; export declare const logAdapterCreated: (name: string) => void; export declare const logAdapterDisposed: (name: string) => void; /** * Wraps creation of adapters around factory functions * @param target the factory function * @returns the adapter function */ export declare const port: (target: (arg?: T) => T) => (arg?: T) => T; /** * Registers resource disposers that are triggered on process exit * @param disposer the disposer function * @returns a function that triggers all registered disposers and terminates the process */ export declare const dispose: (disposer?: Disposer) => ((code?: ExitCode) => Promise); /** * Bootstrap wrapper with above process error handlers in scope * @param boot async function to boot app */ export declare const bootstrap: (boot: () => Promise) => Promise; //# sourceMappingURL=port.d.ts.map