UNPKG

piral-base

Version:

The base library for creating a Piral instance.

10 lines (9 loc) 550 B
import type { PiletApp, PiletMetadata } from '../types'; /** * Loads a pilet from the specified metadata and loader function. * @param meta The metadata of the pilet. * @param link The link (URL) to the pilet's main script. * @param loadPilet The loader function derived for the pilet. * @returns The evaluated pilet, which can then be integrated. */ export declare function loadFrom(meta: Omit<PiletMetadata, 'basePath'>, loadPilet: () => PiletApp | Promise<PiletApp>): Promise<import("../types").SinglePilet | import("../types").MultiPilet>;