import * as React from 'react'; import { GeolocatedProps } from "react-geolocated"; export interface LocationLoaderState { } export interface LocationLoaderExternalProps extends LocationLoaderOptions, GeolocatedProps { } export interface LocationLoaderInjectedProps { locationReady?: boolean; hasLocation?: boolean; handleLocationCallbacks?: (callbacks: LocationLoaderOptions) => void; } export interface LocationLoaderOptions { onLocationEnabled?: (coords: Coordinates) => void; onLocationUpdated?: (coords: Coordinates) => void; onLocationDisabled?: () => void; onLocationReady?: (enabled: boolean, coords: Coordinates) => void; } export declare const locationLoader: (options?: LocationLoaderOptions) => (Component: React.ComponentType) => { new (props: Readonly): { locationReady: boolean; hasLocation: boolean; init: boolean; lastCoords: any; triggerCoords: boolean; render(): JSX.Element; context: any; setState(state: LocationLoaderState | ((prevState: Readonly, props: Readonly) => LocationLoaderState | Pick) | Pick, callback?: () => void): void; forceUpdate(callBack?: () => void): void; readonly props: Readonly & Readonly<{ children?: React.ReactNode; }>; state: Readonly; refs: { [key: string]: React.ReactInstance; }; componentDidMount?(): void; shouldComponentUpdate?(nextProps: Readonly, nextState: Readonly, nextContext: any): boolean; componentWillUnmount?(): void; componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; getSnapshotBeforeUpdate?(prevProps: Readonly, prevState: Readonly): any; componentDidUpdate?(prevProps: Readonly, prevState: Readonly, snapshot?: any): void; componentWillMount?(): void; UNSAFE_componentWillMount?(): void; componentWillReceiveProps?(nextProps: Readonly, nextContext: any): void; UNSAFE_componentWillReceiveProps?(nextProps: Readonly, nextContext: any): void; componentWillUpdate?(nextProps: Readonly, nextState: Readonly, nextContext: any): void; UNSAFE_componentWillUpdate?(nextProps: Readonly, nextState: Readonly, nextContext: any): void; }; new (props: T & LocationLoaderExternalProps, context?: any): { locationReady: boolean; hasLocation: boolean; init: boolean; lastCoords: any; triggerCoords: boolean; render(): JSX.Element; context: any; setState(state: LocationLoaderState | ((prevState: Readonly, props: Readonly) => LocationLoaderState | Pick) | Pick, callback?: () => void): void; forceUpdate(callBack?: () => void): void; readonly props: Readonly & Readonly<{ children?: React.ReactNode; }>; state: Readonly; refs: { [key: string]: React.ReactInstance; }; componentDidMount?(): void; shouldComponentUpdate?(nextProps: Readonly, nextState: Readonly, nextContext: any): boolean; componentWillUnmount?(): void; componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; getSnapshotBeforeUpdate?(prevProps: Readonly, prevState: Readonly): any; componentDidUpdate?(prevProps: Readonly, prevState: Readonly, snapshot?: any): void; componentWillMount?(): void; UNSAFE_componentWillMount?(): void; componentWillReceiveProps?(nextProps: Readonly, nextContext: any): void; UNSAFE_componentWillReceiveProps?(nextProps: Readonly, nextContext: any): void; componentWillUpdate?(nextProps: Readonly, nextState: Readonly, nextContext: any): void; UNSAFE_componentWillUpdate?(nextProps: Readonly, nextState: Readonly, nextContext: any): void; }; displayName: string; contextType?: React.Context; };