export interface MutationParams {
    url: string;
    queriesToInvalidate?: any[];
    method: "GET" | "POST" | "PUT" | "DELETE";
    data?: Record<string, any>;
    isFormData?: boolean;
    excludedIndexKeys?: string[];
    onMutationSuccess?: (data: any) => void;
}
interface MutationPayload {
    isPriorityDataAvailable?: boolean;
    priorityData?: any;
    url?: string;
}
export declare const useGlobalMutation: ({ url, queriesToInvalidate, method, data, isFormData, excludedIndexKeys, onMutationSuccess, }: MutationParams) => {
    runMutation: ({ isPriorityDataAvailable, priorityData, url, }?: MutationPayload) => void;
    mutationLoading: boolean;
    mutationData: {
        data: any;
    } | undefined;
    mutationError: {
        type: string;
        message: string;
        errorType: string | undefined;
    } | undefined;
    isMutationSucceeded: boolean;
};
export {};
//# sourceMappingURL=useGlobalMutation.d.ts.map