import React from 'react'; type Option = { value: any; label: React.ReactNode; }; type LabelProps = { request?: (query: any) => Promise; valueField?: string; labelField?: string; displayField?: string; options?: any[]; children?: React.ReactNode; dialogDataSource?: any[]; resolveSelected?: (values: any[]) => Promise; selectedScopeKey?: string | number; pagedApiAdapter?: { toRequest: (query: any) => any; getItems?: (result: any) => any[]; }; queryFun?: (filter: string) => any; }; /** Gridify 的值转义仅用于查询,不改变表单中的编码。@author nokecy */ export declare const escapeSelectedValue: (value: any) => string; /** * 对程序带入但没有候选标签的编码精确查名;只补显示选项,不触发表单输入或联动。 * 请求仅承接当前选择,切换、清空及卸载后的返回不回填;不存在或无权读取时保留原值。 * @author nokecy */ export declare const useSelectedLabels: (props: LabelProps, value: any, enabled?: boolean) => Option[]; /** 追加选中项的显示标签,保留原有候选与分组结构。@author nokecy */ export declare const withSelectedLabels: (props: T, labels: Option[]) => T; /** labelInValue中以编码占位的标签只在显示层补名,不改变值或发出onChange。@author nokecy */ export declare const selectedDisplayValue: (value: any, labels: Option[], labelInValue?: boolean) => any; export {};