1 | import { BeforeEach, Errback, EvalScripts } from '@tanem/svg-injector';
|
2 | import * as React from 'react';
|
3 | interface BaseProps {
|
4 | [key: string]: unknown;
|
5 | afterInjection?: Errback;
|
6 | beforeInjection?: BeforeEach;
|
7 | evalScripts?: EvalScripts;
|
8 | fallback?: React.ReactType;
|
9 | loading?: React.ReactType;
|
10 | renumerateIRIElements?: boolean;
|
11 | src: string;
|
12 | useRequestCache?: boolean;
|
13 | wrapper?: 'div' | 'span' | 'svg';
|
14 | }
|
15 | declare type HTMLWrapperType = HTMLSpanElement | HTMLDivElement;
|
16 | declare type SVGWrapperType = SVGSVGElement;
|
17 | export declare type WrapperType = HTMLWrapperType | SVGWrapperType;
|
18 | export declare type Props = BaseProps & React.DetailedHTMLProps<React.HTMLAttributes<HTMLWrapperType>, HTMLWrapperType> & React.SVGProps<SVGWrapperType>;
|
19 | export interface State {
|
20 | hasError: boolean;
|
21 | isLoading: boolean;
|
22 | }
|
23 | export {};
|