aimpress-chatbot/node_modules/botbuilder-core/lib/stringUtils.d.ts
“SamoilenkoVadym” 55445dbc86
Some checks failed
Build and deploy Node.js app to Azure Web App - ChatBot2222 / build (push) Has been cancelled
Build and deploy Node.js app to Azure Web App - ChatBot2222 / deploy (push) Has been cancelled
Deploy bot to Azure
2025-04-27 19:55:19 +01:00

40 lines
No EOL
1.2 KiB
TypeScript

/**
* @module botbuilder
*/
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
/**
* Helper class containing string utility methods.
*/
export declare class StringUtils {
/**
* Truncate string with ...
*
* @param text Text.
* @param length Length to truncate text.
* @returns Original string modified.
*/
static ellipsis(text: string, length: number): string;
/**
* UniqueHash - create a unique hash from a string.
*
* @remarks
* The source for this function was derived from the following article:
*
* https://werxltd.com/wp/2010/05/13/javascript-implementation-of-javas-string-hashcode-method/
* @param text Text to hash.
* @returns A string which is an unique hash.
*/
static hash(text: string): string;
/**
* EllipsisHash - create truncated string with unique hash for the truncated part.
*
* @param text Text to truncate.
* @param length Length to truncate at.
* @returns The truncated string with unique hash for the truncated part.
*/
static ellipsisHash(text: string, length: number): string;
}
//# sourceMappingURL=stringUtils.d.ts.map