import type { ChoiceValue, PrimitiveSchema, StringSchema, ValueSchema } from "@autorest/codemodel"; import { Schema, SchemaType } from "@autorest/codemodel"; import type { DeepPartial } from "@azure-tools/codegen"; import type { SchemaUsage } from "./usage.js"; /** a schema that represents a choice of several values (ie, an 'enum') */ export interface ChoiceSchema extends ValueSchema, SchemaUsage { /** the schema type */ type: SchemaType.Choice; /** the primitive type for the choices */ choiceType: ChoiceType; /** the possible choices for in the set */ choices: Array; crossLanguageDefinitionId?: string; } export declare class ChoiceSchema extends Schema implements ChoiceSchema { constructor(name: string, description: string, objectInitializer?: DeepPartial>); } /** a schema that represents a choice of several values (ie, an 'enum') */ export interface SealedChoiceSchema extends ValueSchema, SchemaUsage { /** the schema type */ type: SchemaType.SealedChoice; /** the primitive type for the choices */ choiceType: ChoiceType; /** the possible choices for in the set */ choices: Array; crossLanguageDefinitionId?: string; } export declare class SealedChoiceSchema extends Schema implements SealedChoiceSchema { constructor(name: string, description: string, objectInitializer?: DeepPartial>); } //# sourceMappingURL=choice.d.ts.map