import { NitroApp, NitroAppPlugin } from "nitro/types"; /** * Continues plugin initialization once `pending` (the result of an async plugin) * settles, running the remaining plugins in order. * * Until then, `nitroApp.ready` is set and every request is held in `onRequest`. * The original `onRequest` is restored afterwards, so a ready app has no * per-request cost. * * A failure is reported once as an unhandled rejection (like a sync plugin that * throws), whether or not held requests or events are waiting on `ready`. */ export declare function initAsyncPlugins(app: NitroApp, pending: PromiseLike, plugins: NitroAppPlugin[]): NitroApp; /** * Calls `fn` once async plugins have finished (or right away when the app is ready). * * For entry points that do not go through `nitroApp.fetch`, such as platform * events dispatched as runtime hooks. */ export declare function afterNitroReady(app: NitroApp, fn: () => T): T | Promise;