import type { ComponentLike } from "@glint/template"; interface LoadSignature { Blocks: { loading: []; error: [ { original: unknown; reason: string; } ]; success?: [component: ComponentLike]; }; } /** * Loads a value / promise / function providing state for the lifetime of that value / promise / function. * * Can be used for manual bundle splitting via await importing components. * * @example * ```gjs * import { load } from 'ember-primitives/load'; * * const Loader = load(() => import('./routes/sub-route')); * * * ``` */ export declare function load(fn: Value | Promise | (() => Promise) | (() => Value)): ComponentLike>; export {}; //# sourceMappingURL=load.d.ts.map