export declare const CLOUD_TUNNEL_SERVER = "https://otterkit.app"; export declare const CLOUD_API_SERVER = "https://api.otterkit.com"; export declare const CLOUD_CONSOLE_URL = "https://console.otterkit.com"; export declare const CLOUD_BILLING_URL = "https://console.otterkit.com/billing"; export interface ResolvedServer { /** Origin for `/ws/connect` and `/api/agent/*`. */ tunnel: string; /** Origin for `/api/device/*`, `/api/me/*`, `/api/console/*`. */ api: string; /** True when pointed at a self-hosted instance (one origin for both). */ selfHosted: boolean; /** Public domain endpoints hang off: `https://.`. */ tunnelDomain: string; /** Where the server came from, for `whoami`/diagnostics. */ source: 'env' | 'credentials' | 'legacy-env' | 'cloud'; } /** `example-hooks.com/` → `https://example-hooks.com`. */ export declare function normalizeServer(input: string): string; export declare function isCloudServer(server: string): boolean; export declare function resolveServer(): ResolvedServer; /** Origin for tunnel provisioning / agent APIs. */ export declare function tunnelServer(): string; /** Origin for the console / account APIs. */ export declare function apiServer(): string; /** Public domain endpoints hang off (`otterkit.app` for the cloud). */ export declare function tunnelDomain(): string; export declare function isSelfHosted(): boolean; /** * Web console origin - where notification/device settings live. * * Note this is a THIRD cloud origin: the cloud dashboard is * console.otterkit.com, not the API (api.otterkit.com), so this cannot * reuse apiServer(). A self-hosted instance serves the dashboard from * the instance origin like everything else. */ export declare function consoleUrl(): string; /** Host-only form of consoleUrl(), for compact terminal/tool hints. */ export declare function consoleHost(): string; /** * Where to send someone who hit a balance / plan wall: the cloud billing * page, or the instance's own page on a self-hosted server. */ export declare function topUpUrl(fromServer?: string): string;