UNPKG

@mxenabled/rules-engine

Version:

UI for MX's rules engine Dwight

50 lines (45 loc) 1.6 kB
import * as react_jsx_runtime from 'react/jsx-runtime'; interface HttpClient { get<T>(resource: string, options?: { params?: Record<string, string>; body?: BodyInit; }): Promise<T>; put<T>(resource: string, options: { params?: Record<string, string>; body?: BodyInit; }): Promise<T>; post<T>(resource: string, options?: { params?: Record<string, string>; body?: BodyInit; }): Promise<T>; delete<T>(resource: string, options?: { params?: Record<string, string>; body?: BodyInit; }): Promise<T>; request(method: string, resource: string, options?: { params?: Record<string, string>; body?: BodyInit; }): Promise<any>; setTimeout(timeout: number): void; setDefaultHeaders(headers: Record<string, string>): void; createRequestHeaders(options: { headers?: Record<string, string>; body?: BodyInit; }): Record<string, string>; headers: Record<string, string>; timeout: number; } interface RulesEngineProps { httpClient: HttpClient; } declare function RulesEngine({ httpClient }: RulesEngineProps): react_jsx_runtime.JSX.Element; type FeedSize = 'full' | 'mini' | 'micro'; interface InsightPreviewCardProps { feedSize: FeedSize; title?: string; description?: string; cta?: string; } declare function InsightPreviewCard({ feedSize, title, description, cta, }: InsightPreviewCardProps): react_jsx_runtime.JSX.Element; export { InsightPreviewCard as CustomInsight, RulesEngine }; export type { FeedSize, InsightPreviewCardProps };