import type { Contexts } from "./types"; /** * Base64 encode a string, works in both browser and Node.js environments. */ export declare const base64Encode: (str: string) => string; /** * Deep equality check for Contexts objects. */ export declare const contextsEqual: (a: Contexts, b: Contexts) => boolean; /** * Validate a Contexts object, logging warnings for invalid structures. */ export declare const validateContexts: (contexts: Contexts) => void; /** * Encode a Contexts object for use in the eval-with-context URL path. * * For quonfig, we encode the context as: * 1. JSON.stringify the contexts object directly * 2. Base64 encode * 3. URL encode */ export declare const encodeContexts: (contexts: Contexts) => string; /** * Encode contexts in the prefab-compatible wire format (used by eval-with-context endpoint). * This produces the typed format: { contexts: [{ type: "user", values: { email: { string: "foo" } } }] } */ export declare const encodeContextsTyped: (contexts: Contexts) => string;