import { AxisSpec, PColumnSpec } from "@milaboratories/pl-model-common"; /** * One distinguishing piece of the postfix: the full source spec (axis or linker column — no info * lost) plus `text`, the minimal text that sets it apart from the siblings (a label, or only the * differing domain keys). Custom formatters may use `spec` freely; `text` is the default rendering. */ export type LinkerPart = { spec: Spec; text: string; }; /** The distinguishing source of one column: its root axis (when it differs) + the linker chain. */ export type LinkerParts = { root?: LinkerPart; linkers: LinkerPart[]; }; /** * Renders the postfix zone from the distinguishing sources. Default: * `via ${[root, linkers.join(" > ")].filter(Boolean).join(" ")}` (using each piece's `text`). * Returning `undefined` — or the empty string `""` — suppresses the postfix entirely (the column * keeps just its stem); the two are treated identically. */ export type LinkerFormatter = (parts: LinkerParts, hit: PColumnSpec | undefined, index: number) => string | undefined; //# sourceMappingURL=linked_column_postfix.d.ts.map