import type { Cell } from '@fortune-sheet/core'; import type { WorkSpreadsheetContent } from '../work-types'; import { type SpreadsheetCellBorderFormat, type SpreadsheetResolvedCellBorders } from './spreadsheet-cell-border'; import { type SpreadsheetCellRangeInput } from './spreadsheet-cell-range'; export declare const spreadsheetCellStylePresetIds: readonly ["normal", "good", "bad", "neutral", "calculation", "checkCell", "explanatoryText", "input", "linkedCell", "note", "output", "warningText", "heading1", "heading2", "heading3", "heading4", "total"]; export type SpreadsheetCellStyleChoice = (typeof spreadsheetCellStylePresetIds)[number]; export type SpreadsheetCellStylePreset = SpreadsheetCellStyleChoice | 'custom'; export declare const MAX_SPREADSHEET_CELL_STYLE_CELLS = 10000; interface SpreadsheetCellStyleFormat { bg: string; bl: 0 | 1; cl: 0 | 1; fc: string; ff: string; fs: number; it: 0 | 1; un: 0 | 1; } export interface SpreadsheetCellStylePreview { backgroundColor: string; color: string; fontSize?: string; fontStyle?: 'italic' | 'normal'; fontWeight?: number; textDecoration?: 'none' | 'underline'; } export interface SpreadsheetCellStyleDefinition { id: SpreadsheetCellStyleChoice; label: string; group: '常用' | '数据和模型' | '标题和汇总'; description: string; format: SpreadsheetCellStyleFormat; borders?: readonly SpreadsheetCellBorderFormat[]; preview: SpreadsheetCellStylePreview; } export declare const spreadsheetCellStyleDefinitions: readonly [SpreadsheetCellStyleDefinition, SpreadsheetCellStyleDefinition, SpreadsheetCellStyleDefinition, SpreadsheetCellStyleDefinition, SpreadsheetCellStyleDefinition, SpreadsheetCellStyleDefinition, SpreadsheetCellStyleDefinition, SpreadsheetCellStyleDefinition, SpreadsheetCellStyleDefinition, SpreadsheetCellStyleDefinition, SpreadsheetCellStyleDefinition, SpreadsheetCellStyleDefinition, SpreadsheetCellStyleDefinition, SpreadsheetCellStyleDefinition, SpreadsheetCellStyleDefinition, SpreadsheetCellStyleDefinition, SpreadsheetCellStyleDefinition]; export declare function spreadsheetCellStyleDefinition(preset: SpreadsheetCellStyleChoice): SpreadsheetCellStyleDefinition; export declare function spreadsheetCellStylePreset(cell: Cell | null | undefined, borders?: SpreadsheetResolvedCellBorders): SpreadsheetCellStylePreset; export declare function canApplySpreadsheetCellStyle(content: WorkSpreadsheetContent, sheetId: string, range: SpreadsheetCellRangeInput, preset: SpreadsheetCellStyleChoice): boolean; export declare function applySpreadsheetCellStyle(content: WorkSpreadsheetContent, sheetId: string, range: SpreadsheetCellRangeInput, preset: SpreadsheetCellStyleChoice): WorkSpreadsheetContent | null; export {};