import * as z from "zod"; import { ElementTarget, ElementTarget$Outbound } from "./elementtarget.js"; import { SingleTargetCache, SingleTargetCache$Outbound } from "./singletargetcache.js"; export type Three = { type?: "INDEX" | undefined; index: number; }; export type Two = { type?: "LABEL" | undefined; label: string; }; export type One = { type?: "VALUE" | undefined; value: string; }; /** * new field for selecting options, optional for backcompat */ export type Choice = One | Two | Three; export type SelectOptionCommand = { thoughts?: string | undefined; /** * unique identifier to this step, used for step cache */ id: string; useSelector?: boolean | undefined; force?: boolean | undefined; /** * disable element caching for this step */ disableCache?: boolean | undefined; /** * url or url regex for the iframe */ iframeUrl?: string | undefined; type?: "SELECT_OPTION" | undefined; target: ElementTarget; cache?: SingleTargetCache | undefined; /** * option value, deprecated old field */ option?: string | undefined; /** * new field for selecting options, optional for backcompat */ choice?: One | Two | Three | undefined; }; /** @internal */ export declare const Three$inboundSchema: z.ZodType; /** @internal */ export type Three$Outbound = { type: "INDEX"; index: number; }; /** @internal */ export declare const Three$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace Three$ { /** @deprecated use `Three$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `Three$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `Three$Outbound` instead. */ type Outbound = Three$Outbound; } /** @internal */ export declare const Two$inboundSchema: z.ZodType; /** @internal */ export type Two$Outbound = { type: "LABEL"; label: string; }; /** @internal */ export declare const Two$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace Two$ { /** @deprecated use `Two$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `Two$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `Two$Outbound` instead. */ type Outbound = Two$Outbound; } /** @internal */ export declare const One$inboundSchema: z.ZodType; /** @internal */ export type One$Outbound = { type: "VALUE"; value: string; }; /** @internal */ export declare const One$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace One$ { /** @deprecated use `One$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `One$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `One$Outbound` instead. */ type Outbound = One$Outbound; } /** @internal */ export declare const Choice$inboundSchema: z.ZodType; /** @internal */ export type Choice$Outbound = One$Outbound | Two$Outbound | Three$Outbound; /** @internal */ export declare const Choice$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace Choice$ { /** @deprecated use `Choice$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `Choice$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `Choice$Outbound` instead. */ type Outbound = Choice$Outbound; } /** @internal */ export declare const SelectOptionCommand$inboundSchema: z.ZodType; /** @internal */ export type SelectOptionCommand$Outbound = { thoughts?: string | undefined; id: string; useSelector?: boolean | undefined; force?: boolean | undefined; disableCache?: boolean | undefined; iframeUrl?: string | undefined; type: "SELECT_OPTION"; target: ElementTarget$Outbound; cache?: SingleTargetCache$Outbound | undefined; option?: string | undefined; choice?: One$Outbound | Two$Outbound | Three$Outbound | undefined; }; /** @internal */ export declare const SelectOptionCommand$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace SelectOptionCommand$ { /** @deprecated use `SelectOptionCommand$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `SelectOptionCommand$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `SelectOptionCommand$Outbound` instead. */ type Outbound = SelectOptionCommand$Outbound; } //# sourceMappingURL=selectoptioncommand.d.ts.map