export type PreloadStack = PreloadModule[] & { execute(): Promise; }; export interface PreloadModule { main(): T; } export interface PreloadAPI { push(item: PreloadModule): PreloadStack['push']; execute: PreloadStack['execute']; } /** * The function returns the preload stack. * @returns the value of the variable `preloadStack`. */ export declare function preload(): PreloadAPI;