import { AxiosResponse } from "axios";
import React from "react";
import { KeyedMutator, MutatorCallback } from "swr/dist/types";
import { GetSchema200Response } from "./client";
export type SchemaResponse = {
    data?: AxiosResponse<GetSchema200Response, any>;
    error?: Error;
    revalidate: KeyedMutator<AxiosResponse<GetSchema200Response, any>>;
    mutate: (data?: AxiosResponse<GetSchema200Response, any> | Promise<AxiosResponse<GetSchema200Response, any>> | MutatorCallback<AxiosResponse<GetSchema200Response, any>>, shouldRevalidate?: boolean) => Promise<AxiosResponse<GetSchema200Response, any> | undefined>;
    isValidating: boolean;
    roles?: {
        value: string;
        text: string;
    }[];
    version?: string;
};
export declare const useSchema: () => SchemaResponse;
export declare const SchemaProvider: React.FC;
