/** * Result of applying workbook protection — contains the fields that both * Workbook and WorkbookWriter need to persist. */ export interface WorkbookProtectionHash { lockStructure?: boolean; lockWindows?: boolean; lockRevision?: boolean; algorithmName?: string; hashValue?: string; saltValue?: string; spinCount?: number; } /** * Build a workbook-protection object with optional password hashing. * * This is the shared implementation used by both `Workbook.protect()` and * `WorkbookWriter.protect()`. The caller is responsible for assigning the * result to its own `protection` field. * * @param password - Optional password to hash * @param options - Optional protection flags (lockStructure, lockWindows, lockRevision, spinCount) * @returns A fully-populated workbook-protection object */ export declare function buildWorkbookProtection(password?: string, options?: { lockStructure?: boolean; lockWindows?: boolean; lockRevision?: boolean; spinCount?: number; }): Promise;