import * as React from 'react'; import { QueryParamConfigMap, DecodedValueMap } from 'serialize-query-params'; import { SetQuery } from './types'; declare type Omit = Pick>; declare type Diff = Omit; export interface InjectedQueryProps { query: DecodedValueMap; setQuery: SetQuery; } /** * HOC to provide query parameters via props `query` and `setQuery` * NOTE: I couldn't get type to automatically infer generic when * using the format withQueryParams(config)(component), so I switched * to withQueryParams(config, component). * See: https://github.com/microsoft/TypeScript/issues/30134 */ export declare function withQueryParams>(paramConfigMap: QPCMap, WrappedComponent: React.ComponentType

): React.FC>>; export default withQueryParams; /** * HOC to provide query parameters via props mapToProps (similar to * react-redux connect style mapStateToProps) * NOTE: I couldn't get type to automatically infer generic when * using the format withQueryParams(config)(component), so I switched * to withQueryParams(config, component). * See: https://github.com/microsoft/TypeScript/issues/30134 */ export declare function withQueryParamsMapped(paramConfigMap: QPCMap, mapToProps: (query: DecodedValueMap, setQuery: SetQuery, props: Diff) => MappedProps, WrappedComponent: React.ComponentType

): React.FC>;