import type { OAuthIntegration, OAuthState } from '../../types/index.js';
/**
 * Create a new OAuth state entry with CSRF token, PKCE verifier, and TTL.
 */
export declare function createOAuthState(integration: OAuthIntegration, projectPath: string, port: number): OAuthState;
/**
 * Validate that the state token is known and not expired, then remove it.
 * Returns null if missing or expired (consumed or never existed).
 */
export declare function validateAndConsumeState(state: string): OAuthState | null;
/**
 * Read an active state entry without consuming it.
 * Returns null if missing or expired.
 */
export declare function getActiveState(state: string): OAuthState | null;
//# sourceMappingURL=state-manager.d.ts.map