import type { CnAiBizRequestConfig } from '../../../cn-ai-table/types';
import type { StaticDataSource } from '../../../cn-ai-table/types/static-data-source';
import type { ViewsData } from '../../../cn-ai-table/view/types/model';
/** `{ type: 'static', data: ViewsData }`，与魔方/插件对齐 */
type StaticViewsPayload = StaticDataSource<ViewsData>;
/**
 * 视图配置数据源（低码与源码同一套分支）：
 * - 配 `viewConfig.queryViewsUrl`：`queryTableViews`
 * - 否则：`fetchViewsFromCube`（与 {@link getCubePlatformMeta} 可解析时一致，含低码侧传入 `cubePlatform`）
 *
 * @returns effectiveViewsConfigs — 交给 `DataModel.setAllViews` 的静态包；未就绪时为 `null`
 * @returns isLoadingViews — 已配业务 query URL 且首次请求未回时为 true，用于全屏 Loading
 */
export declare function useViewsConfigs(tableId: string | undefined, bizRequestConfig: CnAiBizRequestConfig | undefined): {
    effectiveViewsConfigs: StaticViewsPayload | null;
    isLoadingViews: boolean;
};
export {};
