/** * CBS silent-login shared constants + state-key helpers (direct-fetch variant). * * Used by the webtrade iframe receiver (`eaera-webtrade` → * `composables/useSilentLoginReceiver.ts`) when running embedded inside the * super-app parent. The iframe persists the `stateKey` returned by * `authStore.cbsStart()` here and reads it back when the parent posts the * `eaera:silent-login:callback` message. */ /** localStorage key holding the CBS `stateKey`. */ export declare const CBS_STATE_KEY_STORAGE = "cms_sdk_cbs_state_key"; /** postMessage `type` discriminators for the silent-login handshake. */ export declare const SILENT_LOGIN_MESSAGE: { /** parent → iframe: kick off the handshake. */ readonly START: "eaera:silent-login:start"; /** iframe → parent: CBS `authorizeUrl` ready for the parent to fetch. */ readonly AUTHORIZE_READY: "eaera:silent-login:authorize-ready"; /** parent → iframe: handshake failed (`code`). */ readonly ERROR: "eaera:silent-login:error"; /** parent → iframe: user logged out of the parent; tear down the session. */ readonly LOGOUT: "eaera:logout"; }; /** Read the persisted CBS `stateKey` (empty string when absent / non-browser). */ export declare function readCbsStateKey(): string; /** Clear the persisted CBS `stateKey` (call after `/cbs/callback` settles). */ export declare function clearCbsStateKey(): void; //# sourceMappingURL=cbsStateKey.d.ts.map