/** * `hula admin ` — HubLaunch admin operations (ADMIN role * required; the server answers a plain 404 to anyone else). Admin-only: never * listed in `hula --help` and never documented in README.md, docs/ or * CHANGELOG.md (those sync to the public NoStackApp/hub-launch mirror). * * hula admin invite --label [--github ] [--days N] [--json] * create an open-source program invite and print its * link (https://www.hublaunch.site/open-source/). * hula admin invites [--json] * list invites, newest first. * * Uses the API key from `hula login` (the project's * `.hublaunch/hublaunch.config.js`, else HULA_API_KEY), so an agent running as * the admin can create invites without the website. Credential precedence for * --url / --api-key mirrors `hula info`. * * Routed by `index.ts` before the spinner, gh validation and full config load * (see {@link runAdminCommand}), so stdout carries only the link / JSON. */ import { Command } from 'commander'; import type { Config } from '../types/index.js'; interface AdminApiOptions { url?: string; apiKey?: string; json?: boolean; } export interface AdminInviteOptions extends AdminApiOptions { label?: string; github?: string; days?: string; } /** * Fast-path entry for `hula admin ...` (args include `admin`). Reads the * project config silently, so nothing but the command's own output reaches * stdout and it also works outside a repo when HULA_API_KEY is set. */ export declare function runAdminCommand(args: string[]): Promise; export declare function adminCommand(program: Command, config: Config): void; export declare function executeAdminInvite(options: AdminInviteOptions, config: Config): Promise; export declare function executeAdminInvites(options: AdminApiOptions, config: Config): Promise; export {}; //# sourceMappingURL=admin.d.ts.map