/**
 * @license
 * Copyright 2025 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */
import type { MCPOAuthCredentials } from '../token-store.js';
export declare abstract class BaseTokenStorage {
    protected readonly serviceName: string;
    constructor(serviceName: string);
    abstract getCredentials(serverName: string): Promise<MCPOAuthCredentials | null>;
    abstract setCredentials(credentials: MCPOAuthCredentials): Promise<void>;
    abstract deleteCredentials(serverName: string): Promise<void>;
    abstract listServers(): Promise<string[]>;
    abstract getAllCredentials(): Promise<Map<string, MCPOAuthCredentials>>;
    abstract clearAll(): Promise<void>;
    protected validateCredentials(credentials: MCPOAuthCredentials): void;
    protected isTokenExpired(credentials: MCPOAuthCredentials): boolean;
    protected sanitizeServerName(serverName: string): string;
}
