import React from "react"; export type RunMode = "standalone" | "cloud"; export interface ConnectionSettingsProps { visible: boolean; onClose: () => void; /** Current persisted run mode. */ mode: RunMode; /** Current persisted server URL (cloud mode). */ serverUrl: string; /** Persist the chosen mode + resolved URL (empty string in standalone). */ onSave: (mode: RunMode, url: string) => void; /** Default hosted endpoint shown as "Entropy Cloud". */ entropyUrl: string; /** * Health path appended to the resolved server URL. Default `/health`. * (Vault's API base already includes `/api`, so the default resolves to * `/api/health`.) */ healthPath?: string; /** * Validate the parsed JSON health body. Default accepts `{ status: "ok" }` * or `{ status: "healthy" }` — the two Entropy server shapes. */ validateHealth?: (body: unknown) => boolean; /** * When false (default) Standalone is shown but disabled with a "coming * soon" note — vault has no local-only mode yet. Set true once it ships. */ allowStandalone?: boolean; } /** * Connection dialog — a faithful port of simple-finance's, themed from the * palette (so it tracks the active theme instead of hard-coded brand colors) * and upstreamed here so both apps share one implementation. Draggable card * (grip header, double-tap to recenter), Standalone/Cloud mode pills, a * server dropdown (Entropy-hosted or self-hosted), and a live debounced * health check. Standalone is gated until its backend lands. */ export declare function ConnectionSettings({ visible, onClose, mode, serverUrl, onSave, entropyUrl, healthPath, validateHealth, allowStandalone, }: ConnectionSettingsProps): React.JSX.Element; export default ConnectionSettings; //# sourceMappingURL=connection-settings.d.ts.map