import type { EntitySchema } from '../types/schema';
/**
 * Scans a Univer workbook snapshot for RF formula references and validates
 * them against current schemas. Returns a list of missing fields.
 */
export interface StaleFieldReference {
    entity: string;
    field: string;
}
/**
 * Extracts RF formula references from a workbook snapshot's cell data,
 * then checks each entity.field pair against the provided schemas.
 * Returns an array of references that no longer exist in the schema.
 */
export declare function detectStaleFields(workbookSnapshot: Record<string, unknown>, schemas: Record<string, EntitySchema>): StaleFieldReference[];
/**
 * Extracts per-entity field sets from a workbook snapshot's formulas.
 * Returns a Map of entity name → Set of field names used in formulas.
 * Used to construct field-filtered bulk_read requests.
 */
export declare function extractRequiredFields(workbookSnapshot: Record<string, unknown>): Map<string, Set<string>>;
