/**
 * Sanity Canvas adapter — bearer-token resolution.
 *
 * The Canvas CRUD API authenticates with a Sanity token for the source's
 * environment, read from the env var the source names (`tokenEnvVar`,
 * default `AILF_CANVAS_TOKEN`). Per-source vars let production and staging
 * sources coexist in one config.
 *
 * Tokens are opaque — an environment mismatch cannot be detected here; it
 * surfaces as the API's 401/403, which the fetcher reports naming the
 * environment, host, and env var.
 */
import type { CanvasSource } from "./types.js";
export declare const DEFAULT_CANVAS_TOKEN_ENV_VAR = "AILF_CANVAS_TOKEN";
/**
 * Read the source's bearer token from the environment. Throws a clear
 * error citing the env var and the environment the token must be issued
 * for when nothing is configured — a preset-construction error, not a
 * mid-run 401.
 */
export declare function loadCanvasToken(source: Pick<CanvasSource, "environment" | "tokenEnvVar">, env?: NodeJS.ProcessEnv): string;
