import type * as http from 'http'; import type { CloudChannel } from './relay/cloud-channel.js'; export declare const API_TOKEN_PATH: string; export interface ApiDeps { cloudChannel: CloudChannel | null; isShuttingDown: () => boolean; } /** Read or generate the API bearer token (persisted at ~/.brainbotbeta/api-token, mode 0600). */ export declare function getApiToken(): string; /** Create an http.RequestListener with the given dependencies. */ export declare function createApiHandler(deps: ApiDeps): http.RequestListener;