import type { WorkSpreadsheetContent, WorkSpreadsheetDataValidationItem } from '../work-types'; /** OOXML limits a data-validation formula to 255 characters. */ export declare const MAX_SPREADSHEET_CUSTOM_VALIDATION_FORMULA_LENGTH = 255; /** Keep synchronous browser validation bounded even for a hostile workbook. */ export declare const MAX_SPREADSHEET_CUSTOM_VALIDATION_REFERENCED_CELLS = 1024; export interface SpreadsheetCustomValidationResult { message?: string; supported: boolean; valid: boolean; } /** * Evaluates a local Excel custom-validation formula synchronously. * * The editor deliberately evaluates against cached cell values. Formula * recalculation remains a separate kernel concern; a formula cell without a * cached value therefore fails closed instead of silently accepting input. */ export declare function evaluateSpreadsheetCustomValidation(content: WorkSpreadsheetContent, sheetId: string, row: number, column: number, item: WorkSpreadsheetDataValidationItem, value: unknown): SpreadsheetCustomValidationResult;