import type { CSSProperties, ReactNode } from 'react'; import type { FilterLocale } from '../locale'; export declare const getIcon: (icon?: 'time' | 'filter') => import("@emotion/react/jsx-runtime").JSX.Element; /** * 生成稳定的 filterId * 基于 componentName 和 label 生成,确保 label 变化时 ID 也会更新 */ export declare const generateFilterId: (componentName: string, label: ReactNode, fallbackIndex?: number) => string; /** * 获取 Filter 组件的占位符文案 * @param filterLocale Filter 国际化文案 */ export declare const getPlaceholder: (filterLocale?: FilterLocale) => string; /** * Wrapped 模式下显示值的样式 */ export declare const wrappedValueStyle: CSSProperties; /** * 获取 Wrapped 模式下显示值的样式(包含颜色) * @param hasValue 是否有值 */ export declare const getWrappedValueStyle: (hasValue: boolean) => CSSProperties; /** * 包装 Filter 内容的容器 * @param content 内容 * @param padding 内边距,默认为 8 * @param maxHeight 最大高度,默认为 300 */ export declare const wrapContent: (content: ReactNode, padding?: number | string, maxHeight?: number) => ReactNode; /** * 深度比较两个数组是否相等(用于 options 比较) */ export declare const areArraysEqual: (a: unknown[] | undefined, b: unknown[] | undefined) => boolean; /** * 稳定化 options 数组的引用(使用 JSON.stringify 作为 key) * 这是一个普通函数,不是 Hook */ export declare const getStableOptionsKey: (options: unknown[] | undefined) => string; /** * 将 ReactNode 转换为可搜索的字符串 * 用于搜索功能中的文本匹配 */ export declare const normalizeLabel: (label: ReactNode) => string; /** * 根据关键词过滤选项列表 * @param options 选项列表 * @param keyword 搜索关键词 * @returns 过滤后的选项列表 */ export declare const filterOptions: (options: T[], keyword: string) => T[];