/** * @module botframework-config * * Copyright(c) Microsoft Corporation.All rights reserved. * Licensed under the MIT License. */ import { ConnectedService } from './models'; import { IBotConfiguration, IConnectedService } from './schema'; /** * @deprecated See https://aka.ms/bot-file-basics for more information. */ export declare class BotConfigurationBase implements Partial { name: string; description: string; services: IConnectedService[]; padlock: string; version: string; /** * Creates a new BotConfigurationBase instance. */ constructor(); /** * Loads a ConnectedService instance given a JSON based service configuration. * * @param service JSON based service configuration. * @returns A new ConnectedService instance. */ static serviceFromJSON(service: IConnectedService): ConnectedService; /** * Loads a new BotConfigurationBase instance given a JSON based configuration. * * @param source JSON based configuration. * @returns A new BotConfigurationBase instance. */ static fromJSON(source?: Partial): BotConfigurationBase; /** * Creates a JSON based version of the current bot. * * @returns An IBotConfiguration JSON. */ toJSON(): IBotConfiguration; /** * Connect a service to the bot file. * * @param newService Service to add. * @returns Assigned ID for the service. */ connectService(newService: IConnectedService): string; /** * Find service by id. * * @param id ID of the service to find. * @returns The IConnectedService based on the provided id. */ findService(id: string): IConnectedService; /** * Find service by name or id. * * @param nameOrId Name or ID of the service to find. * @returns The IConnectedService based on the provided name or id. */ findServiceByNameOrId(nameOrId: string): IConnectedService; /** * Remove service by name or id. * * @param nameOrId Name or ID of the service to remove. * @returns The removed IConnectedService based on the provided name or id. */ disconnectServiceByNameOrId(nameOrId: string): IConnectedService; /** * Remove service by id. * * @param id ID of the service to remove. */ disconnectService(id: string): void; /** * Migrate old formated data into new format. */ protected migrateData(): void; } //# sourceMappingURL=botConfigurationBase.d.ts.map