import { type StructuralAxisTransform } from '@bilig/formula';
import { type WorkbookTableRecord } from '../../workbook-store.js';
import type { CreateEngineStructureServiceArgs } from './structure-service-types.js';
type StructureMetadataRewriteArgs = Pick<CreateEngineStructureServiceArgs, 'state' | 'clearOwnedPivot'>;
interface StructuralTableHeaderCellWrite {
    readonly sheetName: string;
    readonly row: number;
    readonly col: number;
    readonly value: string;
}
export interface DeletedTableColumnReference {
    readonly tableName: string;
    readonly columnName: string;
}
export declare function isQualifiedRefErrorFormulaSource(formula: string): boolean;
export declare function rewriteDefinedNamesForStructuralTransform(args: StructureMetadataRewriteArgs, sheetName: string, transform: StructuralAxisTransform, deletedTableColumns: readonly DeletedTableColumnReference[], changedTableNames: ReadonlySet<string>): Set<string>;
export declare function rewriteWorkbookMetadataForStructuralTransform(args: StructureMetadataRewriteArgs, sheetName: string, transform: StructuralAxisTransform): {
    changedTableNames: Set<string>;
    tableHeaderCellWrites: StructuralTableHeaderCellWrite[];
    deletedTableColumns: DeletedTableColumnReference[];
};
export declare function workbookTableRecordsEqual(left: WorkbookTableRecord, right: WorkbookTableRecord): boolean;
export declare function rewriteTableForStructuralTransform(table: WorkbookTableRecord, transform: StructuralAxisTransform): {
    table: WorkbookTableRecord;
    headerCellWrites: StructuralTableHeaderCellWrite[];
    deletedColumnNames: string[];
} | undefined;
export {};
