/**
 * @license
 * Copyright 2026 Amodal Labs, Inc.
 * SPDX-License-Identifier: MIT
 */
export declare const RUNTIME_BROWSER_REQUEST_TIMEOUT_MS = 35000;
/**
 * Returns the Studio base path, e.g. `'/studio'` or `''` (empty string
 * when served at root). Never includes a trailing slash.
 *
 * In the browser, reads from `window.__STUDIO_BASE_PATH__` injected by the
 * server. On the server side (no `window`), always returns empty string.
 */
export declare function getBasePath(): string;
/**
 * Prefix a Studio API path with the base path.
 *
 * @example
 * ```ts
 * // BASE_PATH = '/studio'
 * studioApiUrl('/api/config')  // => '/studio/api/config'
 *
 * // BASE_PATH = '' (default)
 * studioApiUrl('/api/config')  // => '/api/config'
 * ```
 */
export declare function studioApiUrl(path: string): string;
/**
 * Build a URL for a runtime API call, routed through the Studio server proxy.
 * The browser never talks to the runtime directly — all calls go through
 * `/api/runtime/*` on Studio's own server.
 *
 * @example
 * ```ts
 * runtimeApiUrl('/api/config')   // => '/api/runtime/config'
 * runtimeApiUrl('/api/files')    // => '/api/runtime/files'
 * runtimeApiUrl('/inspect/context') // => '/api/runtime/inspect/context'
 * ```
 */
export declare function runtimeApiUrl(path: string): string;
