import type { Sheet } from '@fortune-sheet/core'; import { type FortuneSheetProtectionAuthority, type SpreadsheetCellProtectionRange } from './work-spreadsheet-protection'; export interface XlsxProtectionFeatures { authority?: FortuneSheetProtectionAuthority; cellProtectionRanges: SpreadsheetCellProtectionRange[]; } export interface XlsxProtectionDiagnostic { code: string; message: string; severity: 'info' | 'warning'; } export declare function readXlsxProtection(worksheet: Document, styles: Document | null): XlsxProtectionFeatures; export declare function writeXlsxProtection(worksheet: Document, sheet: Sheet, styles?: XlsxCellProtectionWriter): void; export declare class XlsxCellProtectionWriter { private readonly styles; private readonly cellXfs; private readonly generated; changed: boolean; constructor(styles: Document); styleId(baseStyleId: number, locked: boolean, hidden: boolean): number; serialize(): string; private updateCount; } export declare function diagnoseXlsxProtection(worksheet: Document, styles: Document | null): XlsxProtectionDiagnostic[];