import type { OAuthApplication } from "./api/oauth"; export interface OAuthCallbacks { onSuccess: (data: { token: string; application: OAuthApplication; redirectUrl: string; }) => void; onError: (data: { error: string; errorIdentifier: string; }) => void; onCancel: () => void; } export interface OAuthConfig { clientId: string; scopes?: string; redirectUri?: string; newtab?: boolean; autoRedirect?: boolean; } export declare class OAuthHelper { private callbacks; private config; constructor(config: OAuthConfig, callbacks: OAuthCallbacks); updateConfig(config: Partial): void; initialize(): void; cleanup(): void; connect(): Promise; submit(): Promise; cancel(): void; private handleSuccess; private handleError; }