import React from 'react'; import type { DataSourceEventPayload } from '@splunk/dashboard-types'; export interface HOCProps { dataSources?: Record; } export interface ComponentProps extends HOCProps { [x: string]: unknown; } /** * Simple wrapper that adds a risky search command toast message to any component that takes in datasources * * NOTE: this uses hoistNonReactStatics to retain the original static properties of the component * so things like menus and editors still work * * @param {React.ComponentType} ComponentToWrap Any React component that has { dataSources } as a prop * @returns A wrapped component */ export declare const withRiskySearchToast:

(ComponentToWrap: React.ComponentType

) => React.FC

; export declare const mapWithRiskySearchToast: >(components: M) => M; //# sourceMappingURL=withRiskySearchToast.d.ts.map