import { FC, ReactNode } from 'react';
import { AxiosError } from 'axios';
import { TUseK8sSmartResourceParams } from '../../../../../hooks/useK8sSmartResource';
type DataMap = Record<string, unknown>;
type MultiQueryContextValue = {
    data: DataMap;
    isLoading: boolean;
    isError: boolean;
    errors: ReadonlyArray<AxiosError | Error | string | null>;
    /** Check whether a specific request (by index) has an error */
    hasErrorForReq: (reqIndex: number) => boolean;
    /** Get the error object for a specific request (by index), or null if it succeeded */
    getErrorForReq: (reqIndex: number) => AxiosError | Error | string | null;
};
type MultiQueryProviderProps = {
    /** Mixed array: first (any number of) K8s resources, then (any number of) URL strings */
    items: ReadonlyArray<string | TUseK8sSmartResourceParams<unknown>>;
    /** Optional short-circuit to set data.req0 directly */
    dataToApplyToContext?: unknown;
    children: ReactNode;
};
/** ------------------------------ Provider -------------------------------- */
export declare const MultiQueryProvider: FC<MultiQueryProviderProps>;
/** Consumer hook */
export declare const useMultiQuery: () => MultiQueryContextValue;
export {};
