import type { Snippet } from "svelte"; import type { Resolver } from "../lib/resolver.js"; import type { Label, Labels } from "./translation.js"; import type { Config } from "./config.js"; export interface IconConfig { config: Config; params: Labels[L]; translation: string; } export type IconDefinition = Snippet<[IconConfig]>; export type IconDefinitions = { [L in Label]: IconDefinition; }; export type Icons = Resolver<{ [L in Label]?: IconConfig; }, Partial>;