//#region src/app/internal/context.d.ts /** Holds the active instance for a given context key. */ export interface NuxtAppContext { /** Return the active instance, throwing when none is set. */ use: () => T; tryUse: () => T | null; set: (instance?: T, replace?: boolean) => void; unset: () => void; call: (instance: T, callback: () => R) => R; callAsync: (instance: T, callback: () => R | Promise) => Promise; } export declare function getContext(key: string, opts: { asyncContext?: boolean; }): NuxtAppContext; //#endregion