/** * @type { PickedResourceVariant } * @description A product variant included in a picked resource. */ export type PickedResourceVariant = { /** * @type { string } * @memberof PickedResourceVariant */ id: string; /** * @type { string } * @memberof PickedResourceVariant */ title: string | null; }; export declare function decodePickedResourceVariant(rawInput: unknown): PickedResourceVariant | null; /** * @type { PickedResource } * @description A resource returned by the Shopify App Bridge resource picker. */ export type PickedResource = { /** * @type { string } * @memberof PickedResource */ id: string; /** * @type { string } * @memberof PickedResource */ title: string; /** * @description Variants of the picked product. Present when the picked resource is a product; contains only the variants the merchant selected. Compare its length with totalVariants to tell a narrowed selection from a whole-product selection. * @type { PickedResourceVariant[] } * @memberof PickedResource */ variants: PickedResourceVariant[] | null; /** * @description How many variants the picked product has in total. * @type { number } * @memberof PickedResource */ totalVariants: number | null; }; export declare function decodePickedResource(rawInput: unknown): PickedResource | null; /** * @type { ResourcePickerResult } * @description The result returned by the Shopify App Bridge resource picker. */ export type ResourcePickerResult = { /** * @description The selected resources. * @type { PickedResource[] } * @memberof ResourcePickerResult */ selection: PickedResource[] | null; }; export declare function decodeResourcePickerResult(rawInput: unknown): ResourcePickerResult | null;