import type { OAuthIntegration, OAuthFlowResult, OAuthToken } from '../../types/index.js';
/**
 * Build the OAuth flow result for the given integration.
 * For oauth2-pkce integrations, starts a local callback server and returns authUrl.
 * For guided-token integrations, returns the guidance message.
 */
export declare function buildOAuthFlow(integration: OAuthIntegration, projectPath: string): Promise<OAuthFlowResult>;
/**
 * Return user-friendly text describing the next step for an OAuth flow.
 */
export declare function buildOAuthPromptText(result: OAuthFlowResult): string;
/**
 * Exchange an OAuth authorization code for a token.
 * Validates the CSRF state before sending the exchange request.
 */
export declare function exchangeOAuthCode(stateToken: string, code: string): Promise<OAuthToken>;
//# sourceMappingURL=config-guard.d.ts.map