import { FormRowTyped } from ".."; export interface OAuthButton extends FormRowTyped { label: string; authorizeEndpoint: String; clientId: String; responseType: OAuthResponseType; redirectUri?: string; scopes?: string[]; successHandler: (accessToken: string, refreshToken?: string) => Promise; } interface OAuthResponseType { type: "code" | "pkce" | "token"; tokenEndpoint?: string; pkceCodeLength?: number; } declare global { function createOAuthButton(info: OAuthButton): OAuthButton; } export {};