/** * Copyright (c) 2026 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author Alexander Rose */ /** * A single `begin_spacegroup...end_spacegroup` block from CCP4 `syminfo.lib` * (see `data/sym/syminfo.lib`), reduced to the fields needed to build * `src/mol-math/geometry/spacegroup/syminfo.ts` (`RawSpacegroupData`) and * `src/mol-math/geometry/spacegroup/_spec/syminfo.lib.ts` (this same shape, * emitted verbatim as the test-only regression oracle). */ export interface SyminfoEntry { /** International Tables (ITA) spacegroup number. */ readonly number: number; /** CCP4-style spacegroup number (`0` if this setting has none). */ readonly ccp4: number; /** Raw `symbol Hall` value (quotes/leading space stripped, any `(...)` suffix kept as-is). */ readonly hall: string; /** Raw `symbol xHM` value (quotes stripped, may carry a ` :H`/`:R`/`:1`/`:2` setting-qualifier suffix). */ readonly xHM: string; /** Raw `basisop` change-of-basis coordinate-triplet expression, e.g. `'z,x,y'`. */ readonly basisop: string; /** Non-empty `symbol old` alias name tokens (there may be zero, one, or several). */ readonly old: readonly string[]; /** `symop` coordinate-triplet expressions (point-group coset representatives). */ readonly symops: readonly string[]; /** `cenop` coordinate-triplet expressions (lattice-centering translations). */ readonly cenops: readonly string[]; } /** Parses the raw CCP4 `syminfo.lib` text (`data/sym/syminfo.lib`) into `SyminfoEntry` records. */ export declare function parseSyminfoLib(raw: string): SyminfoEntry[]; /** Strips a trailing ` :X` CCP4/ITA setting-qualifier suffix, e.g. `'R -3 :H'` -> `'R -3'`. */ export declare function stripSettingQualifier(xHM: string): string;