/** * Result of applying sheet protection — contains the hash fields that both * Worksheet and WorksheetWriter need to persist. */ export interface SheetProtectionHash { sheet: boolean; algorithmName?: string; hashValue?: string; saltValue?: string; spinCount?: number; [key: string]: unknown; } /** * Build a sheet-protection object with optional password hashing. * * This is the shared implementation used by both `Worksheet.protect()` and * `WorksheetWriter.protect()`. The caller is responsible for assigning the * result to its own `sheetProtection` field. * * @param password - Optional password to hash * @param options - Optional protection flags (objects, scenarios, etc.) * @returns A fully-populated sheet-protection object */ export declare function buildSheetProtection(password?: string, options?: Partial): Promise;