import { Badge, BadgeContext } from '../../types'; /** @public */ export type BadgeInfo = { id: string; }; /** @public */ export type BadgeOptions = { badgeInfo: BadgeInfo; context: BadgeContext; }; /** @public */ export type BadgeSpec = { /** Badge id */ id: string; /** Badge data */ badge: Badge; /** The URL to the badge image */ url: string; /** The markdown code to use the badge */ markdown: string; }; /** @public */ export type BadgeBuilder = { getBadges(): Promise; createBadgeJson(options: BadgeOptions): Promise; createBadgeSvg(options: BadgeOptions): Promise; };