import type { IApp } from '../server.ts'; export declare let appInstance: IApp; export declare const setAppInstance: (app: IApp) => void; /** * Read the app-instance singleton, throwing a guided error when it isn't set — * consumers reading the raw `appInstance` binding too early fail later with an * opaque `TypeError: cannot read properties of undefined` and no hint at the cause. */ export declare const getAppInstance: () => IApp; /** * Clear the app-instance singleton. **Test-only escape hatch** for runners that * can't isolate per file. It does NOT clean up mongoose-registered models, the * redis client module state, or env vars — so one `Server` per process (per-file * isolation, as the shipped node:test setup does) stays the recommended path. */ export declare const resetAppInstance: () => void;