import { type AnyElysia } from 'elysia';
type LifecycleHook = () => void | Promise<void>;
type AppSetup = (app: AnyElysia) => AnyElysia;
declare function bootstrap(hook: LifecycleHook): void;
declare function shutdown(hook: LifecycleHook): void;
declare function use(setup: AppSetup): void;
declare function start(): Promise<AnyElysia>;
declare function stop(): Promise<void>;
/**
 * 应用生命周期
 *
 * - `App.bootstrap` / `App.shutdown` / `App.use` — 可选自定义钩子
 * - `App.start` / `App.stop` — 自动：鉴权中间件、Db/Cache/Auth、CRUD
 */
export declare const App: {
    bootstrap: typeof bootstrap;
    shutdown: typeof shutdown;
    use: typeof use;
    start: typeof start;
    stop: typeof stop;
};
/**
 * 宿主入口：配置回调结束后自动 `App.start()`
 *
 * @example
 * ```ts
 * vome(({ App }) => {
 *   App.bootstrap(async () => {})
 *   App.shutdown(async () => {})
 *   App.use((app) => app)
 * })
 * ```
 */
export declare function vome(setup?: (ctx: {
    App: typeof App;
}) => void | Promise<void>): Promise<AnyElysia>;
export {};
