jsii
Version:
[](https://cdk.dev) [: ((message: any, ...args: any[]) => void) | undefined;
/**
* Formats a diagnostic message with color and context, if possible.
*
* @param diagnostic the diagnostic message ot be formatted.
* @param projectRoot the root of the TypeScript project.
*
* @returns a formatted string.
*/
export declare function formatDiagnostic(diagnostic: ts.Diagnostic, projectRoot: string): string;
/**
* Formats a diagnostic message with color and context, if possible. Users
* should use `formatDiagnostic` instead, as this implementation is intended for
* internal usafe only.
*
* @param diagnostic the diagnostic message ot be formatted.
* @param projectRoot the root of the TypeScript project.
*
* @returns a formatted string.
*/
export declare function _formatDiagnostic(diagnostic: ts.Diagnostic, projectRoot: string): string;
export declare function logDiagnostic(diagnostic: ts.Diagnostic, projectRoot: string): void;
/**
* Parses a string-formatted person entry from `package.json`.
* @param value the string-formatted person entry.
*
* @example
* parsePerson("Barney Rubble <b@rubble.com> (http://barnyrubble.tumblr.com/)");
* // => { name: "Barney Rubble", email: "b@rubble.com", url: "http://barnyrubble.tumblr.com/" }
*/
export declare function parsePerson(value: string): {
name: string;
email?: string | undefined;
url?: string | undefined;
};
export declare function parseRepository(value: string): {
url: string;
};
export declare function stripAnsi(x: string): string;
/**
* Maps the provided type to stip all `readonly` modifiers from its properties.
*/
export type Mutable<T> = {
-readonly [K in keyof T]: Mutable<T[K]>;
};
//# sourceMappingURL=utils.d.ts.map