frontend/.pnpm-store/v3/files/80/735bc46c601c21dcda770540ab88a51ee4cac9a8673d4058251c61f69a09ba524899881dbac78a90be52e8cd59f28c7801cf665993a5d92dcb9ec80d49f31b

22 lines
490 B
Plaintext

declare const widestLine: {
/**
Get the visual width of the widest line in a string - the number of columns required to display it.
@example
```
import widestLine = require('widest-line');
widestLine('古\n\u001B[1m@\u001B[22m');
//=> 2
```
*/
(input: string): number;
// TODO: remove this in the next major version, refactor definition to:
// declare function widestLine(input: string): number;
// export = widestLine;
default: typeof widestLine;
};
export = widestLine;