import { FxError } from "@microsoft/teamsfx-api"; import { Result } from "neverthrow"; import { ExpressionNode } from "../expression/evaluateExpression"; import { SelectorSpec } from "./resolveBuildTarget"; /** `UserError` name for malformed selector JSON. */ export declare const BUILD_TARGET_MALFORMED_SELECTOR = "BuildTargetMalformedSelector"; /** Parse raw `selector.json` into a routing-only `SelectorSpec`. */ export declare function parseSelectorSpec(raw: unknown): Result; /** Presentation projection of `selector.json` for the live Q1 prompt face. */ /** One selectable option's presentation. */ export interface PresentationOption { id: string; label: string; detail?: string; groupName?: string; condition?: ExpressionNode; } /** One Q1 question's presentation. */ export interface PresentationQuestion { name: string; title?: string; placeholder?: string; staticOptions: PresentationOption[]; } /** The presentation projection of the whole create selector. */ export interface SelectorPresentation { questions: PresentationQuestion[]; } /** Project raw `selector.json` onto its `SelectorPresentation`. */ export declare function parseSelectorPresentation(raw: unknown): Result; //# sourceMappingURL=parseSelector.d.ts.map