import type { StructuralAxisTransform } from '@bilig/formula';
import type { WorkbookPreservedMetadataRecord, WorkbookPreservedSheetMetadataRecord } from '../../workbook-metadata-types.js';
import type { WorkbookSheetDeletionMetadataContext, WorkbookSheetReorderMetadataContext } from '../../workbook-metadata-service-contract.js';
export declare function rewritePreservedSheetMetadataForStructuralTransform(metadata: WorkbookPreservedSheetMetadataRecord | undefined, transform: StructuralAxisTransform): WorkbookPreservedSheetMetadataRecord | undefined;
export declare function renamePreservedWorkbookMetadataSheetReferences(metadata: WorkbookPreservedMetadataRecord, oldSheetName: string, newSheetName: string): WorkbookPreservedMetadataRecord | undefined;
export declare function rewritePreservedWorkbookMetadataForSheetDeletion(metadata: WorkbookPreservedMetadataRecord, deletedSheetName: string, context: WorkbookSheetDeletionMetadataContext): WorkbookPreservedMetadataRecord | undefined;
export declare function rewritePreservedWorkbookMetadataForTableDeletion(metadata: WorkbookPreservedMetadataRecord, deletedTableName: string): WorkbookPreservedMetadataRecord | undefined;
export declare function rewritePreservedPivotPackageArtifactsForSheetDeletion(workbookMetadata: WorkbookPreservedMetadataRecord | undefined, sheetMetadata: WorkbookPreservedSheetMetadataRecord | undefined, context: WorkbookSheetDeletionMetadataContext | undefined): WorkbookPreservedMetadataRecord | undefined;
export declare function rewritePreservedWorkbookMetadataForSheetReorder(metadata: WorkbookPreservedMetadataRecord, context: WorkbookSheetReorderMetadataContext): WorkbookPreservedMetadataRecord | undefined;
export declare function rewritePreservedPivotPackageArtifactsForStructuralTransform(workbookMetadata: WorkbookPreservedMetadataRecord | undefined, sheetMetadata: WorkbookPreservedSheetMetadataRecord | undefined, sheetName: string, sheetIndex: number, transform: StructuralAxisTransform): WorkbookPreservedMetadataRecord | undefined;
export declare function preservedSheetMetadataTouchesStructuralDelete(metadata: WorkbookPreservedSheetMetadataRecord | undefined, axis: 'row' | 'column', start: number): boolean;
