/** * _render-token.ts — plumbing for the API's server-issued render token. * * The Go API stamps every charged visual on a render-family route * (/human-design/chart + /visualization/bodygraph, /human-design/transit-chart, * /human-design/composite, /chinese/bazi, /vedic/chart) with a short-lived * token bound to the account and the chart-defining inputs * (auth/render_token.go). Presenting it on a re-render of the SAME chart — * the iframe's host light/dark reconciliation, a layout flip — makes that * re-render free (base charge and visual surcharge). Anything else is charged * normally, so passing a stale or foreign token is harmless. * * Flow: explore_* puts the token on the payload as `_render_token`; the iframe * hands it back as the `render_token` argument of its recalc / refetch call; * the tool sends it in the X-OE-Render-Token header. */ export declare const RENDER_TOKEN_HEADER = "X-OE-Render-Token"; /** Input-schema property for the app-only recalc args. Supplied by the embedded app, not the model. */ export declare const RENDER_TOKEN_PROPERTY: { readonly type: "string"; readonly description: string; }; /** Request headers presenting `token`, or undefined when there is none. */ export declare function renderTokenHeaders(token: unknown): Record | undefined; /** * The token the API injected on the root of a /visualization/bodygraph * response (a binary route, whose response headers the backend client does * not surface). */ export declare function renderTokenFromSvg(svg: string | null | undefined): string | undefined; /** `visual.render_token` from an include_visual JSON response. */ export declare function renderTokenFromVisual(visual: unknown): string | undefined; /** Copy of tool args with the per-call token removed (for `_refetch.args`). */ export declare function withoutRenderToken>(args: T): T;