/** * Defines the item type used by this module. */ export type Item = Record; /** * Defines the container options format type used by this module. */ export type ContainerOptionsFormat = (string | Item)[] | Item; /** * Returns parsed options. * @template T * @template R * @param {ContainerOptionsFormat} options options passed by the user * @param {(item: string | string[], itemOrKey: string) => R} normalizeSimple normalize a simple item * @param {(value: T, key: string) => R} normalizeOptions normalize a complex item * @returns {[string, R][]} parsed options */ export function parseOptions(options: ContainerOptionsFormat, normalizeSimple: (item: string | string[], itemOrKey: string) => R, normalizeOptions: (value: T, key: string) => R): [string, R][]; /** * Returns options to spread or pass. * @template T * @param {string} scope scope name * @param {ContainerOptionsFormat} options options passed by the user * @returns {Record} options to spread or pass */ export function scope(scope: string, options: ContainerOptionsFormat): Record;