/** * OAuth CLI Helper * Gets user's OAuth token for CLI commands * Updated to use JiraWorkspace model (supports multiple workspaces per user) */ export interface OAuthCliAuth { accessToken: string; email: string; baseUrl: string; cloudId: string; userId: string; workspaceId?: string; } /** * Get OAuth token for CLI * Uses JiraCredential for the first user (or specified userId/jiraBaseUrl) * * @param userId - Optional user ID (String). If not provided, uses first user with a credential * @param workspaceId - Optional credential ID (ignored - only one credential per user) * @param jiraBaseUrl - Optional Jira base URL to filter credentials (e.g., 'https://pamcms.atlassian.net') */ export declare function getOAuthTokenForCli(userId?: string, workspaceId?: string, jiraBaseUrl?: string): Promise; /** * Check if user is logged in with OAuth * Checks for session-based credentials first, then falls back to any credentials */ export declare function isOAuthConfigured(): Promise; /** * Get login instructions */ export declare function getLoginInstructions(): string; //# sourceMappingURL=oauth-cli-helper.d.ts.map