/// declare module 'oy-vey' { export const Table: React.DetailedHTMLFactory; export const TBody: React.DetailedHTMLFactory< Oy.OyTBodyElementAttributes, HTMLTableSectionElement >; export const TR: React.DetailedHTMLFactory; export const TD: React.DetailedHTMLFactory; export const Img: React.DetailedHTMLFactory; export const A: React.DetailedHTMLFactory; export const renderTemplate: ( jsx: JSX.Element, opts: Oy.RenderOptions, template?: (renderOpts: Oy.CustomTemplateRenderOptions) => string ) => string; const oy: { Table: typeof Table; TBody: typeof TBody; TR: typeof TR; TD: typeof TD; Img: typeof Img; A: typeof A; renderTemplate: typeof renderTemplate; }; export default oy; } declare namespace Oy { interface OyElementAttributes { width?: number | string; height?: number | string; align?: 'left' | 'center' | 'right' | 'justify' | 'char'; background?: string; bgcolor?: string; border?: number; valign?: 'top' | 'middle' | 'bottom' | 'baseline'; } interface OyTBodyElementAttributes extends React.HTMLAttributes, OyElementAttributes {} interface OyTableElementAttributes extends React.TableHTMLAttributes, OyElementAttributes {} interface OyTRElementAttributes extends React.HTMLAttributes, OyElementAttributes {} interface OyTDElementAttributes extends React.TdHTMLAttributes, OyElementAttributes {} interface OyImgElementAttributes extends React.ImgHTMLAttributes, OyElementAttributes {} interface OyAElementAttributes extends React.AnchorHTMLAttributes, OyElementAttributes {} type RenderOptions = { title: string; previewText: string; headCSS?: string; bgColor?: string; lang?: string; dir?: 'ltr' | 'rtl'; }; type CustomTemplateRenderOptions = RenderOptions & { bodyContent: string; }; }