import { SomeSchema } from '@ui-schema/ui-schema/CommonTypings'; import * as React from 'react'; import { Map } from 'immutable'; /** * @deprecated will be removed in a future version */ export declare const PROGRESS_NONE = false; /** * @deprecated will be removed in a future version */ export declare const PROGRESS_START = "start"; /** * @deprecated will be removed in a future version */ export declare const PROGRESS_DONE = true; /** * @deprecated will be removed in a future version */ export declare const PROGRESS_ERROR = "error"; /** * @deprecated will be removed in a future version */ export type PROGRESS = false | 'start' | true | 'error'; /** * @deprecated will be removed in a future version */ export declare function useProgress(): [PROGRESS, React.Dispatch>]; /** * @deprecated will be removed in a future version */ export interface UIApiContextType { schemas?: Map; loadSchema?: (url: string, versions?: string[]) => Promise; } /** * @deprecated will be removed in a future version */ export type loadSchemaUIApi = (refUrl: string, version?: string[]) => Promise; /** * @deprecated will be removed in a future version */ export type schemaLocalCachePath = string; /** * @deprecated will be removed in a future version */ export declare const UIApiContext: React.Context; /** * @deprecated will be removed in a future version */ export declare const useUIApi: () => UIApiContextType; /** * @deprecated will be removed in a future version */ export declare const schemaLocalCachePath: string; /** * @deprecated will be removed in a future version */ export interface UIApiActionSchemaLoaded { type: 'SCHEMA_LOADED'; id: string; value: any; noCache: boolean | undefined; } /** * @deprecated will be removed in a future version */ export declare const isLoaded: (schemas: UIApiContextType['schemas'], ref: string, version?: string) => boolean; /** * @deprecated will be removed in a future version */ export interface UIApiProviderProps { loadSchema: loadSchemaUIApi; noCache?: boolean; } /** * @deprecated will be removed in a future version */ export declare const UIApiProvider: React.FC>;