import { SchemaNode } from '@stoplight/json-schema-tree'; import * as React from 'react'; /** one option among several mutually exclusive sub-schemas */ export type Choice = { title: string; type: SchemaNode; }; /** * Enumerates the sub-schema type for a given node. * * Usually a node has one choice, only one possible type: itself. If a node is * a oneOf or anyOf combiner, the possible types are the sub-types of the * combiner. */ export declare const useChoices: (schemaNode: SchemaNode) => { selectedChoice: Choice; setSelectedChoice: React.Dispatch>; choices: Choice[]; };