interface StatusDeps { /** Server URL (e.g. 'http://127.0.0.1:7337'). */ serverUrl: string; /** Bearer auth token. */ token: string; /** Output as raw JSON instead of pretty-printed summary. */ json?: boolean; /** Write to stdout. */ stdout?: (s: string) => boolean; /** Write to stderr. */ stderr?: (s: string) => boolean; /** Inject fetch for testability. Defaults to global fetch. */ fetch?: typeof fetch; } /** * Fetch GET /status and print a summary (or raw JSON). * Returns an exit code: 0 on success, 1 on error. */ export declare function fetchStatus(deps: StatusDeps): Promise; /** * Build the server URL from a bind address and port. * Handles '0.0.0.0' / '::' by converting to '127.0.0.1' since /status * is loopback-only. */ export declare function buildServerUrl(bind: string, port: number): string; interface RunStatusDeps { /** Config with server.bind + server.port. */ serverUrl: string; /** Token file path (already resolved). */ tokenFile: string; /** Whether to output raw JSON. */ json?: boolean; /** Environment variable accessor (for MMA_AUTH_TOKEN override). */ env?: Record; /** Write to stdout. */ stdout?: (s: string) => boolean; /** Write to stderr. */ stderr?: (s: string) => boolean; /** Inject fetch for testability. */ fetch?: typeof fetch; /** Home directory (used to expand token file paths). */ homeDir?: string; } /** * Read the token and then call fetchStatus. * Returns exit code. */ export declare function runStatus(deps: RunStatusDeps): Promise; export {}; //# sourceMappingURL=status.d.ts.map