import { type StructuralAxisTransform } from '@bilig/formula';
import type { WorkbookPreservedMetadataRecord } from '../../workbook-metadata-types.js';
export declare function relationshipPartPathForPackagePart(partPath: string): string;
export declare function packageRelationshipTargetPaths(basePartPath: string, relationshipsXml: string): Set<string>;
export declare function resolvePivotRelationshipTarget(basePartPath: string, target: string): string;
export declare function normalizePivotPackagePath(path: string): string;
export declare function normalizePackagePath(path: string): string;
export declare function readXmlAttribute(attributes: string, name: string): string | undefined;
export declare function readXmlAttributeMatch(attributes: string, name: string): {
    readonly raw: string;
    readonly quote: string;
    readonly value: string;
} | undefined;
export declare function unescapeXmlAttribute(value: string): string;
export declare function escapeXmlAttribute(value: string): string;
export declare function preservedPackagePartText(part: {
    readonly dataBase64: string;
    readonly byteLength: number;
}): string | undefined;
export declare function rewritePreservedTextPackagePart<T extends {
    readonly storage: 'base64';
    readonly dataBase64: string;
    readonly byteLength: number;
}>(part: T, text: string): T;
export declare function renameSheetName(value: string, oldSheetName: string, newSheetName: string): string;
export declare function renameFormulaText(formula: string, oldSheetName: string, newSheetName: string): string;
export declare function rewriteCellReferenceForStructuralTransform(address: string, transform: StructuralAxisTransform): string | undefined;
export declare function cellReferenceTouchesAxisDelete(address: string, axis: 'row' | 'column', start: number): boolean;
export declare function isCellReference(address: string): boolean;
export declare function clipAddressToSheetGrid(address: string): string | undefined;
export declare function hasConnectionXmlEntries(xml: string): boolean;
export declare function removeConnectionXmlEntries(xml: string, connectionIds: ReadonlySet<string>): string;
export declare function rewriteConnectionsCount(xml: string): string;
export declare function removeWorkbookPivotCacheEntries(xml: string | undefined, cacheIds: ReadonlySet<string>): string | undefined;
export declare function hasPivotArtifacts(artifacts: NonNullable<WorkbookPreservedMetadataRecord['pivotArtifacts']>): boolean;
export declare function rewritePivotTableDefinitionLocationRefsForStructuralTransform(xml: string, transform: StructuralAxisTransform): string | undefined;
export declare function rewritePivotCacheWorksheetSourceRefsForStructuralTransform(xml: string, sheetName: string, transform: StructuralAxisTransform): string | undefined;
export declare function renamePivotCacheWorksheetSourceSheetReferences(xml: string, oldSheetName: string, newSheetName: string): string;
