supMDX-components/dist/tag.d.ts
2023-02-17 04:12:33 +09:00

20 lines
653 B
TypeScript

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;
};