import { type PisellCardPickerCategoryConfig, type PisellCardPickerItem, type TabbarDataSource } from '@pisell/materials'; export declare type ProResourcePickerSelection = [ string | null, string | null, string | null ]; /** 解析单条记录在最多 3 级上的分类 key */ export declare function resolveCategoryPath(item: PisellCardPickerItem, config?: PisellCardPickerCategoryConfig): ProResourcePickerSelection; /** 是否匹配当前已选层级路径(前缀匹配) */ export declare function matchesSelection(item: PisellCardPickerItem, selection: ProResourcePickerSelection, config?: PisellCardPickerCategoryConfig): boolean; /** * 根据 records 派生 PisellTabbarTemplate1 的多层级 dataSource。 * - id 使用「分类 key」(已确保非空字符串) * - 顶部不再额外注入「全部」节点;不选层级即视为全部 */ export declare function buildTabbarDataSourceFromRecords(items: PisellCardPickerItem[], config?: PisellCardPickerCategoryConfig): TabbarDataSource[]; /** 数据中实际用到的最大嵌套深度,0 表示没有有效分类路径 */ export declare function getMaxCategoryDepth(items: PisellCardPickerItem[], config?: PisellCardPickerCategoryConfig): 0 | 1 | 2 | 3; /** 默认搜索匹配文本:拼接 record 标题 + id */ export declare function defaultGetSearchText(record: PisellCardPickerItem): string;