import { getInjectionToken } from "@ogre-tools/injectable"; import type { BundledLensExtensionConstructor, BundledLensExtensionManifest, } from "./lens-extension"; export type BundledExtensionResult = BundledLensExtensionConstructor | null; export interface BundledExtension { readonly manifest: BundledLensExtensionManifest; main: () => BundledExtensionResult | Promise; renderer: () => BundledExtensionResult | Promise; } export const bundledExtensionInjectionToken = getInjectionToken({ id: "bundled-extension-path", });