/** * Arial Server - Connect command * * Handles authentication to external services (GitHub) */ /** * Connect command options */ export interface ConnectOptions { /** GitHub App Client ID */ clientId?: string | undefined; /** Force re-authentication even if already connected */ force?: boolean | undefined; } /** * Connect result */ interface ConnectResult { ok: true; scope: string; } interface ConnectError { ok: false; code: "MISSING_CLIENT_ID" | "ALREADY_CONNECTED" | "AUTH_FAILED" | "SAVE_FAILED" | "USER_DENIED"; message: string; } type Result = ConnectResult | ConnectError; /** * Run the GitHub OAuth Device Flow */ export declare function runConnectGitHub(options?: ConnectOptions): Promise; /** * Disconnect from GitHub (remove stored credentials) */ export declare function runDisconnectGitHub(): Promise<{ ok: true; } | { ok: false; message: string; }>; /** * Check GitHub connection status */ export declare function checkGitHubStatus(): Promise<{ connected: true; scope: string; createdAt: string; } | { connected: false; envToken: boolean; }>; /** * Print success message for connect command */ export declare function printConnectSuccess(result: ConnectResult): void; /** * Print error message for connect command */ export declare function printConnectError(error: ConnectError): void; /** * Print disconnect success message */ export declare function printDisconnectSuccess(): void; /** * Print GitHub status */ export declare function printGitHubStatus(status: Awaited>): void; export {}; //# sourceMappingURL=connect.d.ts.map