import { Logger } from 'pino'; import * as valleyed from 'valleyed'; import { PipeOutput, ConditionalObjectKeys, PipeInput, Pipe } from 'valleyed'; import { E as EquippedError } from '../equippedError-Cmo60Kn-.js'; type HookEvent = 'setup' | 'start' | 'close'; type HookCb = Promise | (() => void | unknown | Promise); type ClassRef = Function & { prototype: unknown; name: string; }; type HookOptions = { class?: ClassRef; after?: ClassRef[]; }; declare const instanceSettingsPipe: () => valleyed.Pipe<{ app: { name: string; }; log: { level: "fatal" | "error" | "warn" | "info" | "debug" | "trace" | "silent" | undefined; } | undefined; utils: { hashSaltRounds: number | undefined; paginationDefaultLimit: number | undefined; maxFileUploadSizeInMb: number | undefined; } | undefined; }, { app: { name: string; }; log: { level: "fatal" | "error" | "warn" | "info" | "debug" | "trace" | "silent"; }; utils: { hashSaltRounds: number; paginationDefaultLimit: number; maxFileUploadSizeInMb: number; }; }>; type Settings = PipeOutput>; type SettingsInput = ConditionalObjectKeys>>; declare class Instance { #private; readonly settings: Readonly; readonly log: Logger; private constructor(); alias(id: string): undefined; get id(): string; getScopedName(name: string, key?: string): string; start(): Promise; static envs(envsPipe: Pipe): E; static create(settings: SettingsInput): Instance; static get(): Instance; static maybeGet(): Instance | undefined; static on(event: HookEvent, cb: HookCb, options?: HookOptions): void; static resolveBeforeCrash(cb: () => Promise): Promise; static crash(error: EquippedError): never; static createId(opts?: { prefix?: string; time?: Date; }): string; } export { type ClassRef, type HookCb, type HookEvent, type HookOptions, Instance };