/** * Builders for Canton/Daml Ledger API Value JSON used in prepareExecute choice arguments. * Canton wallets receive JSON shaped like protobuf-defined Daml `Value` nodes. */ export type DamlValueJson = { party: string; } | { text: string; } | { numeric: string; } | { contractId: string; } | { timestamp: string; } | { bool: boolean; } | { list: { elements: DamlValueJson[]; }; } | { record: { fields: Array<{ label: string; value: DamlValueJson; }>; }; } | { textMap: { entries: Array<{ key: string; value: DamlValueJson; }>; }; } | { variant: { constructor: string; value: DamlValueJson; }; }; type DamlValueField = [label: string, value: DamlValueJson]; type ChoiceContextScalar = string | number | boolean | null; type ChoiceContextObject = { [key: string]: ChoiceContextScalar; }; type TaggedChoiceContextValue = string | { tag: "AV_Text"; value: string; } | { tag: "AV_ContractId"; value: string; } | { tag: "AV_Bool"; value: boolean; } | { tag: "AV_List"; value: TaggedChoiceContextValue[]; } | { tag: string; value: ChoiceContextScalar | TaggedChoiceContextValue[] | ChoiceContextObject; }; export declare const vParty: (party: string) => DamlValueJson; export declare const vText: (text: string) => DamlValueJson; export declare const vNumeric: (numeric: string) => DamlValueJson; export declare const vContractId: (contractId: string) => DamlValueJson; export declare const vList: (elements: DamlValueJson[]) => DamlValueJson; export declare const vRecord: (fields: DamlValueField[]) => DamlValueJson; export declare const vTextMap: (entries: Array<{ key: string; value: DamlValueJson; }>) => DamlValueJson; export declare const vTimestamp: (isoString: string) => DamlValueJson; export declare function normalizeChoiceContextValue(value: unknown): TaggedChoiceContextValue | null; export declare function choiceContextValueToAnyValue(value: TaggedChoiceContextValue): DamlValueJson; export {};