UNPKG

336 BTypeScriptView Raw
1/// <reference types="node" />
2import type { HexString } from '../types.js';
3/**
4 * @name isUtf8
5 * @summary Tests if the input is valid Utf8
6 * @description
7 * Checks to see if the input string or Uint8Array is valid Utf8
8 */
9export declare function isUtf8(value?: HexString | number[] | Buffer | Uint8Array | string | null): boolean;