/** * Atlassian-specific OAuth config factory and Cloud ID resolver. * * Atlassian uses a confidential client flow: clientSecret is included and * PKCE is disabled. Cloud ID is resolved via the accessible-resources endpoint * before the full token manager is wired. */ import type { OAuthConfig } from '../../token/types.js'; import type { AtlassianProviderConfig } from '../../config/types.js'; /** * Build the OAuthConfig for an Atlassian provider. * * Atlassian uses a confidential client — clientSecret is included and * usePKCE is false. The audience and prompt params are required by Atlassian. */ export declare function createAtlassianOAuthConfig(config: AtlassianProviderConfig): OAuthConfig; export interface CloudResource { id: string; url: string; name: string; } /** * Resolve the Atlassian Cloud ID by calling the accessible-resources endpoint. * Returns the first accessible resource (most users have exactly one). * * Uses node:https directly — called during provider init before TokenManager * is fully wired. * * @param accessToken - Valid OAuth2 access token * @returns Cloud resource with id, url, name * @throws ProviderError(CLOUD_ID_RESOLUTION_FAILED) if no resources found or request fails */ export declare function resolveCloudId(accessToken: string): Promise; //# sourceMappingURL=auth.d.ts.map