supMDX-components/dist/tag.d.ts

21 lines
653 B
TypeScript
Raw Normal View History

2023-02-17 02:58:28 +09:00
import React from 'react';
export type TagFactory = {
[modifier: string]: TagFactory;
(children: React.ReactNode): JSX.Element;
(s: TemplateStringsArray, ...argv: any[]): JSX.Element;
};
export type TagInfo = {
tagName: string;
attrs: Record<string, string>;
};
export declare const AttrProxyHandler: ProxyHandler<TagInfo>;
export declare const TagProxyHandler: ProxyHandler<Record<string, TagFactory>>;
export declare const T: Record<string, TagFactory>;
export declare const S: TagFactory;
export declare const C: TagFactory;
export declare const tags: {
T: Record<string, TagFactory>;
S: TagFactory;
C: TagFactory;
};