import React from "react"; import { FetcherRef } from "../fetcherRef"; export interface FetcherProps { refs: FetcherRef[] | FetcherRef; options?: FetcherOptions; Fallback?: React.ComponentType; } export interface FetcherOptions { handleLoading?: boolean; handleError?: boolean; initialLoading?: boolean; errorMessage?: string; minDelay?: number; loadingColor?: string; buttonComponent?: (props: { doRetry: () => void; }) => JSX.Element; loaderComponent?: (props: { color: string; }) => JSX.Element; errorComponent?: (props: { options: FetcherOptions; doRetry: () => void; showButton: boolean; }) => JSX.Element; wrapperClassCSS?: string; loadingClassCSS?: string; errorClassCSS?: string; wrapperStyles?: React.CSSProperties; loadingStyles?: React.CSSProperties; errorStyles?: React.CSSProperties; wrapperBackgroundColor?: string; dimBackground?: boolean; hideLoader?: boolean; progress?: Partial; adjustBorderRadius?: boolean; placeholder?: Partial; initialRender?: FetcherOptions; } export interface ProgressOptions { show?: boolean; color?: string; errorColor?: string; position?: "top" | "bottom"; styles?: React.CSSProperties; valuePerTick: { min: number; max: number; }; tickDelay: { min: number; max: number; }; } export interface PlaceholderOptions { show?: boolean; classTarget?: string; wrapperClassCSS?: string; wrapperStyles?: React.CSSProperties; color?: string; highlightColor?: string; divide?: boolean; truncateLastLine?: boolean; } export declare function makeFullOptions(options: FetcherOptions, nested?: boolean): FetcherOptions; declare const Fetcher: React.FC; export { Fetcher };