import { OAuthClientInformationFull } from './schemas.js'; import { OAuthServerModel } from './OAuthServerModel'; import { AccessToken, RefreshToken, AuthorizationCode, DeviceAuthorization } from './types'; export declare class MemoryOAuthServerModel implements OAuthServerModel { private accessTokens; private refreshTokens; private clients; private authorizationCodes; private deviceByDeviceCode; private deviceCodeByUserCode; saveAuthorizationCode(params: AuthorizationCode, _client?: OAuthClientInformationFull): Promise; getAuthorizationCode(authorizationCode: string): Promise; saveAccessToken(token: AccessToken, client: OAuthClientInformationFull): Promise; revokeAuthorizationCode(authorizationCode: string): Promise; getAccessToken(accessToken: string): Promise; revokeAccessToken(accessToken: string): Promise; saveRefreshToken(token: RefreshToken, client: OAuthClientInformationFull): Promise; getRefreshToken(refreshToken: string): Promise; revokeRefreshToken(refreshToken: string): Promise; getClient(clientId: string): Promise<{ redirect_uris: string[]; client_id: string; token_endpoint_auth_method?: string | undefined; grant_types?: string[] | undefined; response_types?: string[] | undefined; client_name?: string | undefined; client_uri?: string | undefined; logo_uri?: string | undefined; scope?: string | undefined; contacts?: string[] | undefined; tos_uri?: string | undefined; policy_uri?: string | undefined; jwks_uri?: string | undefined; jwks?: any; software_id?: string | undefined; software_version?: string | undefined; software_statement?: string | undefined; client_secret?: string | undefined; client_id_issued_at?: number | undefined; client_secret_expires_at?: number | undefined; } | undefined>; registerClient(clientMetadata: OAuthClientInformationFull): Promise<{ redirect_uris: string[]; client_id: string; token_endpoint_auth_method?: string | undefined; grant_types?: string[] | undefined; response_types?: string[] | undefined; client_name?: string | undefined; client_uri?: string | undefined; logo_uri?: string | undefined; scope?: string | undefined; contacts?: string[] | undefined; tos_uri?: string | undefined; policy_uri?: string | undefined; jwks_uri?: string | undefined; jwks?: any; software_id?: string | undefined; software_version?: string | undefined; software_statement?: string | undefined; client_secret?: string | undefined; client_id_issued_at?: number | undefined; client_secret_expires_at?: number | undefined; }>; saveDeviceAuthorization(device: DeviceAuthorization): Promise; getDeviceAuthorizationByDeviceCode(deviceCode: string): Promise; getDeviceAuthorizationByUserCode(normalizedUserCode: string): Promise; deleteDeviceAuthorization(deviceCode: string): Promise; }