export interface WorkbookProtection { /** Legacy 16-bit hex hash of the workbook password ("CC1A" etc.). */ workbookPassword?: string; workbookPasswordCharacterSet?: string; workbookAlgorithmName?: string; workbookHashValue?: string; workbookSaltValue?: string; workbookSpinCount?: number; /** Legacy 16-bit hex hash of the revisions-tracking password. */ revisionsPassword?: string; revisionsPasswordCharacterSet?: string; revisionsAlgorithmName?: string; revisionsHashValue?: string; revisionsSaltValue?: string; revisionsSpinCount?: number; /** Lock add/delete/move/rename/hide of sheets. */ lockStructure?: boolean; /** Lock the workbook window size and position. */ lockWindows?: boolean; /** Lock revision tracking — enabled with the "Track Changes" feature. */ lockRevision?: boolean; } export declare const makeWorkbookProtection: (opts?: WorkbookProtection) => WorkbookProtection; import type { Workbook } from './workbook'; /** * Lock the workbook with Excel's "Protect Workbook → Structure" default * (lockStructure=true). Pass `overrides` to also lock windows / * revision-tracking, or to attach a password-hash quad. Plaintext password * support is deferred until the D-tier hashing helper lands. */ export declare const protectWorkbook: (wb: Workbook, overrides?: Partial) => WorkbookProtection; /** Drop the workbook-protection record entirely. */ export declare const unprotectWorkbook: (wb: Workbook) => void; /** True iff `lockStructure === true`. */ export declare const isWorkbookProtected: (wb: Workbook) => boolean;