export interface ComponentEntry { title?: string; owner?: string; noCSS?: boolean; alias?: string | readonly string[]; aliasTitles?: Readonly>; optional?: string | readonly string[]; require?: string | readonly string[]; modify?: string | readonly string[]; } export type ComponentCategory = Record>; export type Components = Record>; export interface LoadChainer { series: (before: T, after: () => T) => T; parallel: (values: readonly T[]) => T; } export type LoadFunction = (loadComponent: (id: string) => T, chainer?: Readonly>) => T; export interface Loader { getIds: () => string[]; load: LoadFunction; } function getLoader( components: Readonly, load: readonly string[], loaded?: readonly string[], ): Loader; export = getLoader;