import Connection from '../connection'; import { RegistryConfig, Registry, ConnectionConfig, PersistConnectionConfig, ClientConfig } from './types'; import { Schema } from '../types'; /** * */ export declare class BaseRegistry implements Registry { _registryConfig: RegistryConfig; _saveConfig(): void; _getClients(): { [name: string]: ClientConfig; }; _getConnections(): { [name: string]: PersistConnectionConfig; }; getConnectionNames(): Promise; getConnection(name: string): Promise | null>; getConnectionConfig(name?: string): Promise<{ instanceUrl?: string | undefined; accessToken?: string | undefined; } | { oauth2: { clientId?: string | undefined; clientSecret?: string | undefined; redirectUri?: string | undefined; loginUrl?: string | undefined; }; instanceUrl?: string | undefined; accessToken?: string | undefined; } | null>; saveConnectionConfig(name: string, connConfig: ConnectionConfig): Promise; _findClientName({ clientId, loginUrl }: ClientConfig): string | null; setDefaultConnection(name: string): Promise; removeConnectionConfig(name: string): Promise; getClientConfig(name: string): Promise<{ clientId?: string | undefined; clientSecret?: string | undefined; redirectUri?: string | undefined; loginUrl?: string | undefined; }>; getClientNames(): Promise; registerClientConfig(name: string, clientConfig: ClientConfig): Promise; }