import { type PathBuilderLike } from "path-ts"; /** * What one file's rewrite established. */ export interface SourceNameRewrite { parquet: string; rows: number; /** * The migration applied this mapping, keyed by the retired spelling. * * A file whose rows already use current spellings is reported with an empty map and left untouched. */ renamed: Record; /** * The md5 over the ordered `source_id` column, identical before and after. */ sourceIDDigest: string; } /** * Rewrite one parquet file's `source` column in place, through a temporary output. * * @throws When a row has a `source` the table doesn't name under either spelling. * An unknown value is refused rather than preserved, because preserving it would leave one * file holding both spellings and no later reader could tell which rows were rewritten. * @throws When the row count, the distinct `source` count or the ordered-`source_id` * digest differs after the rewrite. */ export declare function rewriteSourceNames(parquetPath: PathBuilderLike): Promise; //# sourceMappingURL=source-names.d.ts.map