1 | import * as React from 'react';
|
2 | import { Props, State, StorageItem } from './types';
|
3 | export declare const cacheStore: {
|
4 | [key: string]: StorageItem;
|
5 | };
|
6 | export default class InlineSVG extends React.PureComponent<Props, State> {
|
7 | constructor(props: Props);
|
8 | private isActive;
|
9 | private readonly hash;
|
10 | static defaultProps: {
|
11 | cacheRequests: boolean;
|
12 | uniquifyIDs: boolean;
|
13 | };
|
14 | componentDidMount(): void;
|
15 | componentDidUpdate(prevProps: Props, prevState: State): void;
|
16 | componentWillUnmount(): void;
|
17 | private processSVG;
|
18 | private updateSVGAttributes;
|
19 | private getNode;
|
20 | private getElement;
|
21 | private load;
|
22 | private handleCacheQueue;
|
23 | private handleLoad;
|
24 | private handleError;
|
25 | private request;
|
26 | render(): React.ReactNode;
|
27 | }
|
28 | export * from './types';
|