1 | import React, { Component } from 'react';
|
2 | import PropTypes from 'prop-types';
|
3 | import { ThemeModes, AtlaskitThemeProps } from '../types';
|
4 | interface Props {
|
5 | children: React.ReactNode;
|
6 | mode: ThemeModes;
|
7 | }
|
8 | export default class AtlaskitThemeProvider extends Component<Props, AtlaskitThemeProps> {
|
9 | stylesheet: any;
|
10 | static defaultProps: {
|
11 | mode: string;
|
12 | };
|
13 | static childContextTypes: {
|
14 | hasAtlaskitThemeProvider: PropTypes.Requireable<any>;
|
15 | };
|
16 | static contextTypes: {
|
17 | hasAtlaskitThemeProvider: PropTypes.Requireable<any>;
|
18 | };
|
19 | constructor(props: Props);
|
20 | getChildContext(): {
|
21 | hasAtlaskitThemeProvider: boolean;
|
22 | };
|
23 | UNSAFE_componentWillMount(): void;
|
24 | UNSAFE_componentWillReceiveProps(newProps: Props): void;
|
25 | componentWillUnmount(): void;
|
26 | render(): JSX.Element;
|
27 | }
|
28 | export {};
|