import { BotConfigurationBase } from './botConfigurationBase'; import { IBotConfiguration } from './schema'; /** * @deprecated See https://aka.ms/bot-file-basics for more information. */ export declare class BotConfiguration extends BotConfigurationBase { private internal; /** * Load the bot configuration from a JSON. * * @param source JSON based configuration. * @returns A new BotConfiguration instance. */ static fromJSON(source?: Partial): BotConfiguration; /** * Load the bot configuration by looking in a folder and loading the first .bot file in the * folder. * * @param folder (Optional) folder to look for bot files. If not specified the current working directory is used. * @param secret (Optional) secret used to decrypt the bot file. * @returns A Promise with the new BotConfiguration instance. */ static loadBotFromFolder(folder?: string, secret?: string): Promise; /** * Load the bot configuration by looking in a folder and loading the first .bot file in the * folder. (blocking) * * @param folder (Optional) folder to look for bot files. If not specified the current working directory is used. * @param secret (Optional) secret used to decrypt the bot file. * @returns A new BotConfiguration instance. */ static loadBotFromFolderSync(folder?: string, secret?: string): BotConfiguration; /** * Load the configuration from a .bot file. * * @param botpath Path to bot file. * @param secret (Optional) secret used to decrypt the bot file. * @returns A Promise with the new BotConfiguration instance. */ static load(botpath: string, secret?: string): Promise; /** * Load the configuration from a .bot file. (blocking) * * @param botpath Path to bot file. * @param secret (Optional) secret used to decrypt the bot file. * @returns A new BotConfiguration instance. */ static loadSync(botpath: string, secret?: string): BotConfiguration; /** * Generate a new key suitable for encrypting. * * @returns Key to use with the [encrypt](xref:botframework-config.BotConfiguration.encrypt) method. */ static generateKey(): string; /** * @private */ private static internalLoad; /** * Save the configuration to a .bot file. * * @param botpath Path to bot file. * @param secret (Optional) secret used to encrypt the bot file. */ saveAs(botpath: string, secret?: string): Promise; /** * Save the configuration to a .bot file. (blocking) * * @param botpath Path to bot file. * @param secret (Optional) secret used to encrypt the bot file. */ saveAsSync(botpath: string, secret?: string): void; /** * Save the file with secret. * * @param secret (Optional) secret used to encrypt the bot file. * @returns A promise representing the asynchronous operation. */ save(secret?: string): Promise; /** * Save the file with secret. (blocking) * * @param secret (Optional) secret used to encrypt the bot file. */ saveSync(secret?: string): void; /** * Clear secret. */ clearSecret(): void; /** * Encrypt all values in the in memory config. * * @param secret Secret to encrypt. */ encrypt(secret: string): void; /** * Decrypt all values in the in memory config. * * @param secret Secret to decrypt. */ decrypt(secret?: string): void; /** * Gets the path that this config was loaded from. .save() will save to this path. * * @returns The path. */ getPath(): string; /** * Make sure secret is correct by decrypting the secretKey with it. * * @param secret Secret to use. */ validateSecret(secret: string): void; /** * @private */ private savePrep; } //# sourceMappingURL=botConfiguration.d.ts.map