/**
 * TracesBackend — token-source seam for `agents traces sync`.
 *
 * Managed path: signed in to Phoenix (`readSession() != null`), no BYO
 * override. Token is the Phoenix access_token; endpoint is the live
 * `traces.agents-cli.sh` Worker. Zero Cloudflare setup.
 *
 * BYO path (future): TRACES_BASE_URL + TRACES_WRITE_TOKEN env vars. Not
 * exposed in the CLI for M1 — follow-on milestone, same pattern as
 * `agents artifacts setup`.
 */
export declare const DEFAULT_TRACES_DOMAIN = "traces.agents-cli.sh";
export interface TracesBackend {
    /** Public base URL of the traces Worker, no trailing slash. */
    baseUrl: string;
    /** Bearer sent as `Authorization`. Phoenix access_token. */
    token: string;
    /** Phoenix userId — the R2 namespace prefix. */
    userId: string;
}
/**
 * Resolve the backend for the current machine. Throws when not signed in.
 *
 * BYO override env vars (for testing / self-hosted):
 *   AGENTS_TRACES_BASE_URL — Worker URL, no trailing slash
 *   AGENTS_TRACES_WRITE_TOKEN — static write token (bypasses Phoenix auth)
 */
export declare function resolveTracesBackend(): TracesBackend;
export declare function managedTracesBaseUrl(): string;
