import React from 'react'; import { NonCancelableEventHandler } from '../../events'; import { DropdownStatusProps } from './interfaces'; export { DropdownStatusProps }; export interface DropdownStatusPropsExtended extends DropdownStatusProps { isEmpty?: boolean; isNoMatch?: boolean; noMatch?: React.ReactNode; /** * Called when the user clicks the recovery button placed at the * bottom of the dropdown list in the error state. Use this to * retry a failed request or provide another option for the user * to recover from the error. */ onRecoveryClick?: NonCancelableEventHandler; } declare function DropdownStatus({ children }: { children: React.ReactNode; }): JSX.Element; declare type UseDropdownStatus = ({ statusType, empty, loadingText, finishedText, errorText, recoveryText, isEmpty, isNoMatch, noMatch, onRecoveryClick, }: DropdownStatusPropsExtended) => DropdownStatusResult; interface DropdownStatusResult { isSticky: boolean; content: React.ReactNode | null; focusRecoveryLink: () => void; } export declare const useDropdownStatus: UseDropdownStatus; export default DropdownStatus; //# sourceMappingURL=index.d.ts.map