import React from 'react'; import { DOMAttributes } from '@react-types/shared'; import { ResourceBrowserResource, ResourceBrowserPlugin } from '../types'; export type ResourcePickerProps = { resource: ResourceBrowserResource | null; plugin: ResourceBrowserPlugin | null; allowedTypes: string[] | undefined; error: Error | null; isLoading: boolean; isOtherSourceValue: boolean; isDisabled?: boolean; children: (onClose: () => void, titleProps: DOMAttributes) => React.ReactElement; onClear: () => void; isModalOpen: boolean; onModalStateChange(isOpen: boolean): void; }; export declare const ResourcePicker: ({ resource, plugin, allowedTypes, error: externalError, isLoading: isExternalLoading, isOtherSourceValue, isDisabled, children, onClear, isModalOpen, onModalStateChange, }: ResourcePickerProps) => React.JSX.Element;