数通智联化工云平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
933 B

2 years ago
import { EmojiComponentType } from '../data.js';
import { SimilarEmojiTestData, CombinedEmojiTestDataItem } from './similar.js';
import './components.js';
import './parse.js';
import './name.js';
/**
* List of components
*/
type ComponentsCount = Required<Record<EmojiComponentType, number>>;
/**
* Extended tree item
*/
interface TreeSplitEmojiTestDataItem extends CombinedEmojiTestDataItem {
components: ComponentsCount;
componentsKey: string;
}
/**
* Tree item
*/
interface EmojiComponentsTreeItem {
item: TreeSplitEmojiTestDataItem;
children?: Record<EmojiComponentType, EmojiComponentsTreeItem>;
}
type EmojiComponentsTree = Record<string, EmojiComponentsTreeItem>;
/**
* Convert test data to dependencies tree, based on components
*/
declare function getEmojiTestDataTree(data: SimilarEmojiTestData): EmojiComponentsTree;
export { EmojiComponentsTree, EmojiComponentsTreeItem, getEmojiTestDataTree };