import type { CrudDict } from '../../../typings/admin/comm/crud';
import type { VmColorThemeOption } from '../lib/theme-color-options';
import type { ConfirmDialogComponents } from './confirm';
/** CRUD 默认样式配置 */
type CrudStyleConfig = {
    form: {
        labelPosition: 'top' | 'left' | 'right';
        labelWidth: string;
        span: number;
        plugins: unknown[];
    };
    table: {
        border: boolean;
        highlightCurrentRow: boolean;
        autoHeight: boolean;
        contextMenu: boolean | string[];
        column: {
            align: 'left' | 'center' | 'right';
            opWidth: number;
        };
        plugins: unknown[];
    };
    search: {
        plugins: unknown[];
    };
    colors: string[];
};
type CrudGlobalConfig = {
    dict: CrudDict;
    style: CrudStyleConfig;
    /** 宿主注入：vm-color-picker 默认主题色列表（读各端 theme store / CSS 变量） */
    listThemeColorOptions?: () => VmColorThemeOption[];
    /** 宿主注入：vmConfirm 程序化 Dialog */
    confirmDialog?: ConfirmDialogComponents;
};
export declare const DEFAULT_CRUD_STYLE: CrudStyleConfig;
/** 语言包变更时递增，驱动筛选占位 / 按钮文案刷新 */
export declare const crudLocaleRev: import("vue").Ref<number, number>;
type CrudTranslateFn = (key: string, fallback?: string) => string;
/** 安装宿主 t()，供 field.* / 动态占位解析 */
export declare function setCrudTranslator(fn: CrudTranslateFn | null): void;
/** 读语言包；无翻译器时回退 fallback */
export declare function crudT(key: string, fallback?: string): string;
/**
 * CRUD 壳层文案：t('crud.xxx')，回退 dict.label / CRUD_LABELS
 * 依赖 crudLocaleRev，模板/computed 内调用即可随语言刷新
 */
export declare function crudLabel(name: string, localLabel?: Record<string, string>): string;
/** `{0}` 插值 */
export declare function crudFormat(tpl: string, ...args: Array<string | number>): string;
/** 解析动态筛选占位符（依赖 crudLocaleRev / translator） */
export declare function resolveSearchPlaceholder(item: {
    placeholder?: string;
    label?: string;
    fieldKey?: string;
    nameFallback?: string;
    phMode?: 'search' | 'select' | 'keyword' | 'range';
    keywordParts?: string[];
}): string;
/** 区间起止占位 */
export declare function resolveRangePlaceholders(item: {
    fieldKey?: string;
    nameFallback?: string;
    label?: string;
    type?: string;
    range?: {
        rangeType?: string;
    };
}): {
    startPlaceholder: string;
    endPlaceholder: string;
};
/** 安装/覆盖全局 CRUD 配置 */
export declare function setCrudConfig(partial?: {
    dict?: Partial<CrudDict>;
    style?: Partial<CrudStyleConfig>;
    listThemeColorOptions?: () => VmColorThemeOption[];
    confirmDialog?: ConfirmDialogComponents;
}): CrudGlobalConfig;
export declare function getCrudConfig(): CrudGlobalConfig;
export declare function getCrudStyle(): CrudStyleConfig;
export {};
