import * as React from 'react';
import { ReactNode } from 'react';
import { ResourceContextValue } from './ResourceContext';
/**
* Wrap children with a ResourceContext provider only if the value is defined.
*
* Allows a component to work outside of a resource context.
*
* @example
*
* import { OptionalResourceContextProvider, EditButton } from 'react-admin';
*
* const Button = ({ resource }) => (
*
*
*
* );
*/
export declare const OptionalResourceContextProvider: ({ value, children, }: {
value?: ResourceContextValue;
children: ReactNode;
}) => string | number | boolean | Iterable | React.JSX.Element | null | undefined;
//# sourceMappingURL=OptionalResourceContextProvider.d.ts.map