rough-emoji-draw 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,9 @@
1
+ import { TEMPLATE_FLAGS } from "./constant";
2
+ /** 专门模板绘制函数签名。 */
3
+ export type FlagDrawer = () => void;
4
+ /** 专门模板覆盖的国旗 emoji 联合类型。 */
5
+ export type TemplateFlag = (typeof TEMPLATE_FLAGS)[keyof typeof TEMPLATE_FLAGS];
6
+ /** 未覆盖输入的兜底绘制流程,保留较克制的细节数量以控制性能。 */
7
+ export declare function drawGenericFlag(flagEmoji: string): void;
8
+ /** 专门模板分发表:每个标准国旗都有独立绘制入口,避免大量 if 分支。 */
9
+ export declare const templateDrawers: Record<TemplateFlag, FlagDrawer>;