/** * A validating `splitDualLinkKey` for consumers of `@ancientpantheon/pythia-client` — * a port of the private, unvalidated `splitDualLinkKey` in * `apps/pythia/src/connectors/auth/dualLinkCache.ts` (that version trusts its * caller to have already length-checked the key). This SDK version is fed * directly by pasted user input in a UI form, so it validates everything * itself and throws a message naming the SPECIFIC problem rather than * silently slicing a malformed string. */ /** The length (chars) of one Apollo account half (standard OR smart) within a * composite `dual-link-key`. Mirrors `apps/pythia`'s `APOLLO_ACCOUNT_LEN` — * `packages/pythia-client` can't import from `apps/pythia` (separate * package), so this is a small, deliberate duplication of the constant. */ export declare const APOLLO_ACCOUNT_LEN = 162; /** The separator a composite `dual-link-key` is built with * (`standard || DUAL_LINK_BAR || smart`). Must stay byte-identical to the * on-chain `CT_Bar` value (see `dualLinkCache.ts`'s `PYTHIA_DUAL_LINK_BAR`). */ export declare const DUAL_LINK_BAR = "|"; export interface DualLinkHalves { standardApollo: string; smartApollo: string; } /** * Split and validate a composite `dual-link-key` (`standard || "|" || smart`, * 325 chars) into its two Apollo-account halves. Throws * {@link PythiaConnectorValidationError} — with a message naming the specific * problem, so a UI form can show something genuinely useful — on any * malformed shape: wrong total length, a missing/misplaced separator, or a * half that doesn't start with the expected ₱/Π codepoint. */ export declare function splitDualLinkKey(dualLinkKey: string): DualLinkHalves;