export interface PkcePair { verifier: string; challenge: string; } export interface TokenResponse { access_token: string; refresh_token?: string; expires_in?: number; token_type?: string; scope?: string; } export declare const DEFAULT_SCOPE = "memory:read memory:write offline_access"; export declare const pkcePair: () => PkcePair; export declare const randomState: () => string; export declare const registerClient: (authUrl: string, redirectUri: string) => Promise; export declare const buildAuthorizeUrl: (authUrl: string, params: { clientId: string; redirectUri: string; challenge: string; state: string; scope?: string; }) => string; export declare class TokenRequestError extends Error { readonly status: number; readonly oauthError?: string | undefined; constructor(status: number, oauthError?: string | undefined); } export declare const exchangeCode: (authUrl: string, params: { clientId: string; code: string; redirectUri: string; verifier: string; }) => Promise; export declare const refreshTokens: (authUrl: string, clientId: string, refreshToken: string) => Promise; export declare const revokeToken: (authUrl: string, token: string, timeoutMs?: number) => Promise;