/** * Editor-session token for draft template verification. * * In editor mode the backend can verify submitted uiTemplates against the * SERVER-SIDE draft of the plan an editor token is bound to (runtime-backend * `config_verify/draft.py`) instead of requiring a released GrowthBook * config. The chat surfaces attach the token as `X-Syntro-Editor-Token` on * the /templates boot publish and every /stream turn; outside editor mode * no header is sent and the release-only contract stands. * * Token source, in order: * 1. The page's `editor_source` URL param — the same base64url payload the * editor-sdk boots from ({token, api_base}). Read lazily per request so * there is no load-order dependency on the editor bundle. * 2. `window.__SYNTRO_EDITOR_PARAMS__` — the editor-sdk's injected params, * which survive SPA navigations that drop the query string. * * This is deliberately NOT a workspace-auth channel (that is `runtime.token`, * BUG-1785360157). The editor token is an ADDITIVE capability the server * validates independently; sending a stale/invalid one is harmless. */ export declare function readEditorToken(): string | undefined; //# sourceMappingURL=editorToken.d.ts.map