import { T as TokenPair, S as SdkModule } from '../../module-Bq-w9Ws5.js'; import 'graphql-request'; interface User { id: string; email: string; username: string; isActive?: boolean; emailVerified?: boolean; } interface AuthPayload { user: User; accessToken: string; refreshToken: string; expiresIn: number; } interface SignInInput { username: string; password: string; } interface SignUpInput { email: string; username: string; password: string; firstName?: string; lastName?: string; } interface DeviceCodeResponse { deviceCode: string; userCode: string; verificationUri: string; verificationUriComplete: string | null; expiresIn: number; interval: number; } interface AuthCodeChallenge { url: string; state: string; codeVerifier: string; redirectUri: string; } interface AuthCodeExchangeResult { accessToken: string; tokenType: string; expiresIn: number; scopes: string[]; } interface IssuedWorkspaceToken { token: string; expiresAt: string; scopes: string[]; } interface MyWorkspace { id: string; name: string; slug: string; tenantId: string; organizationId: string; } interface AuthApi { signIn(input: SignInInput): Promise; signUp(input: SignUpInput): Promise; refreshToken(): Promise; signOut(): Promise; getCurrentUser(): Promise; isAuthenticated(): Promise; loginWithApiKey(apiKey: string): Promise; loginWithClientCredentials(clientId: string, clientSecret: string): Promise; authenticateApp(clientId: string, clientSecret: string, scopes?: string[]): Promise; startDeviceCodeFlow(scopes?: string[]): Promise; pollDeviceCodeAuth(deviceCode: string, interval?: number): Promise; loginWithDeviceCode(scopes?: string[]): Promise<{ userCode: string; verificationUri: string; promise: Promise; }>; buildAuthorizationUrl(opts?: { redirectUri?: string; scopes?: string[]; state?: string; }): AuthCodeChallenge; exchangeAuthCode(code: string, codeVerifier: string, redirectUri?: string): Promise; fetchWorkspaces(limit?: number): Promise; issueWorkspaceToken(workspaceId: string, organizationId: string): Promise; } declare function generateCodeVerifier(length?: number): string; declare function generateCodeChallenge(verifier: string): string; declare function generateState(): string; declare const authModule: SdkModule; export { type AuthApi, type AuthCodeChallenge, type AuthCodeExchangeResult, type AuthPayload, type DeviceCodeResponse, type IssuedWorkspaceToken, type MyWorkspace, type SignInInput, type SignUpInput, type User, authModule as default, generateCodeChallenge, generateCodeVerifier, generateState };