import type { TftRawData, RawSetData, RawItem, RawVariable, Champion, Trait, Item, Augment } from './types.js'; /** * Detect the current (highest-numbered) set from the raw data. * Uses the `sets` key, picking the highest numeric key. */ export declare function detectCurrentSet(data: TftRawData): string; /** * Get the set data for a given set number. */ export declare function getSetData(data: TftRawData, setNumber: string): RawSetData; /** * Strip HTML/TFT markup tags from a description string. * Converts
to newline, removes all other tags. */ export declare function stripMarkup(desc: string): string; /** * Resolve @Variable@ template placeholders in a description. * * Variables can have: * - Simple values: @Damage@ → "100" * - Star-level scaling arrays: @Damage@ → "100/150/200" (1-star/2-star/3-star) * - Math expressions: @Damage*100@ → multiply value by 100 * * Also handles %i:scaleAD% style formatting tags by stripping them. */ export declare function resolveDescription(desc: string, variables: RawVariable[]): string; /** * Parse champions from set data. * Filters out non-playable units (those without traits). */ export declare function parseChampions(setData: RawSetData): Champion[]; /** * Parse traits from set data with their breakpoints. */ export declare function parseTraits(setData: RawSetData): Trait[]; /** * Check if a raw item is an augment. * Augments are identified by having "Augment" in their apiName. */ export declare function isAugment(item: RawItem): boolean; /** * Check if a raw item is a component (base crafting item). */ export declare function isComponent(item: RawItem): boolean; /** * Parse items from the raw items array. * Separates regular items from augments. * Filters to base items (TFT_Item_ prefix) and current-set items only. * * @param items - Raw items array from CommunityDragon * @param currentSetNumber - The current set number (e.g., "16") */ export declare function parseItems(items: RawItem[], currentSetNumber: string): { items: Item[]; augments: Augment[]; }; //# sourceMappingURL=parser.d.ts.map