/** * Truncates given string to the maximum characters count * * @param str An object that contains serializable values * @param max Maximum number of characters in truncated string * @returns string Encoded */ export declare function truncate(str: string, max?: number): string; /** * This is basically just `trim_line` from * https://github.com/getsentry/sentry/blob/master/src/sentry/lang/javascript/processor.py#L67 * * @param str An object that contains serializable values * @param max Maximum number of characters in truncated string * @returns string Encoded */ export declare function snipLine(line: string, colno: number): string; /** * Join values in array * @param input array of values to be joined together * @param delimiter string to be placed in-between values * @returns Joined values */ export declare function safeJoin(input: any[], delimiter?: string): string; /** * Checks if the value matches a regex or includes the string * @param value The string value to be checked against * @param pattern Either a regex or a string that must be contained in value */ export declare function isMatchingPattern(value: string, pattern: RegExp | string): boolean; //# sourceMappingURL=string.d.ts.map