import { Pool } from 'pg'; import { Response } from 'express'; import { OAuthServerProvider, AuthorizationParams } from '@modelcontextprotocol/sdk/server/auth/provider.js'; import { OAuthRegisteredClientsStore } from '@modelcontextprotocol/sdk/server/auth/clients.js'; import { OAuthClientInformationFull, OAuthTokens, OAuthTokenRevocationRequest } from '@modelcontextprotocol/sdk/shared/auth.js'; import { AuthInfo } from '@modelcontextprotocol/sdk/server/auth/types.js'; import { PgClientsStore } from './pg-clients.js'; export declare class PgOAuthProvider implements OAuthServerProvider { private pool; private _clientsStore; private tokenExpirySeconds; constructor(pool: Pool, tokenExpirySeconds?: number); get clientsStore(): OAuthRegisteredClientsStore; get merchantClientsStore(): PgClientsStore; authorize(client: OAuthClientInformationFull, params: AuthorizationParams, res: Response): Promise; generateCodeAndRedirect(client: OAuthClientInformationFull, params: AuthorizationParams, res: Response): Promise; challengeForAuthorizationCode(_client: OAuthClientInformationFull, authorizationCode: string): Promise; exchangeAuthorizationCode(client: OAuthClientInformationFull, authorizationCode: string, _codeVerifier?: string, _redirectUri?: string, resource?: URL): Promise; exchangeRefreshToken(client: OAuthClientInformationFull, refreshToken: string, scopes?: string[], resource?: URL): Promise; verifyAccessToken(token: string): Promise; revokeToken(_client: OAuthClientInformationFull, request: OAuthTokenRevocationRequest): Promise; private issueTokens; }