/** * Holder 选项(id → label),与 booking `formatHolders` 规则对齐。 */ export interface SalesSdkHolderOption { id: string | number; label: string; } /** * 将 getPetsData 原始列表转为 ProductCard / LineItem 可用的 holder 选项。 * * @example * formatHolderOptions([{ form_record_id: 12, main_field: 'Max' }]); * // => [{ id: 12, label: 'Max' }] */ export declare function formatHolderOptions(rawHolders: any[] | undefined | null): SalesSdkHolderOption[]; /** * 归一化 holder_id(单个或数组)。 * * @example * normalizeHolderIds([1, 2]); // => [1, 2] * normalizeHolderIds(3); // => [3] */ export declare function normalizeHolderIds(value: string | number | Array | null | undefined): Array; /** * 按 holderOptions 反查展示名;找不到时回退为 id 字符串。 * * @example * resolveHolderLabels(12, [{ id: 12, label: 'Max' }]); // => ['Max'] */ export declare function resolveHolderLabels(holderIds: string | number | Array | null | undefined, options: SalesSdkHolderOption[]): string[];