import { Collection } from 'discord.js'; import Connection, { Endpoint } from './Connection'; export declare type YAMLConnections = { [name: string]: Endpoint[] | string; }; export declare class CMError extends Error { } export default class ConnectionsManager { list: Collection; constructor(); load(): Promise; static validateEndpoints(endpoints: Endpoint[]): Promise; static createAutomaticDiscordChannel(threadID: string, name: string): Promise; getWithCreateFallback(threadID: string, name: string): Promise; getWith(id: string): Connection; get(name: string): Connection | undefined; has(id: string): boolean; save(): Promise; }