/*! * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ import * as React from 'react'; import * as PropTypes from 'prop-types'; import AWSAppSyncClient from 'aws-appsync'; import { RehydratedState } from './index'; export interface RehydrateProps { rehydrated: boolean; children: React.ReactNode; } export interface RehydratedProps { render?: ((props: { rehydrated: boolean; }) => React.ReactNode); children?: React.ReactNode; loading?: React.ComponentType; } export default class Rehydrated extends React.Component { static contextTypes: { client: PropTypes.Validator>; }; static propTypes: { render: PropTypes.Requireable<(...args: any[]) => any>; children: PropTypes.Requireable; loading: PropTypes.Requireable; }; constructor(props: any, context: any); componentDidMount(): Promise; render(): {}; }