/**
 * Node.js util module shim
 * Basic utility functions
 */
export declare function format(fmt: string, ...args: unknown[]): string;
export declare function inspect(obj: unknown, options?: {
    depth?: number;
    colors?: boolean;
}): string;
export declare function inherits(ctor: Function, superCtor: Function): void;
export declare function deprecate<T extends Function>(fn: T, msg: string, code?: string): T;
export declare function promisify<T>(fn: (...args: [...unknown[], (err: Error | null, result: T) => void]) => void): (...args: unknown[]) => Promise<T>;
export declare function callbackify<T>(fn: (...args: unknown[]) => Promise<T>): (...args: [...unknown[], (err: Error | null, result: T) => void]) => void;
export declare function isArray(value: unknown): value is unknown[];
export declare function isBoolean(value: unknown): value is boolean;
export declare function isNull(value: unknown): value is null;
export declare function isNullOrUndefined(value: unknown): value is null | undefined;
export declare function isNumber(value: unknown): value is number;
export declare function isString(value: unknown): value is string;
export declare function isUndefined(value: unknown): value is undefined;
export declare function isRegExp(value: unknown): value is RegExp;
export declare function isObject(value: unknown): value is object;
export declare function isDate(value: unknown): value is Date;
export declare function isError(value: unknown): value is Error;
export declare function isFunction(value: unknown): value is Function;
export declare function isPrimitive(value: unknown): boolean;
export declare function isBuffer(value: unknown): boolean;
/**
 * Returns a function that logs debug messages when NODE_DEBUG includes the section
 */
export declare function debuglog(section: string): (...args: unknown[]) => void;
export declare const debug: typeof debuglog;
export declare const types: {
    isArray: typeof isArray;
    isBoolean: typeof isBoolean;
    isNull: typeof isNull;
    isNullOrUndefined: typeof isNullOrUndefined;
    isNumber: typeof isNumber;
    isString: typeof isString;
    isUndefined: typeof isUndefined;
    isRegExp: typeof isRegExp;
    isObject: typeof isObject;
    isDate: typeof isDate;
    isError: typeof isError;
    isFunction: typeof isFunction;
    isPrimitive: typeof isPrimitive;
    isBuffer: typeof isBuffer;
};
export declare const TextEncoder: {
    new (): TextEncoder;
    prototype: TextEncoder;
};
export declare const TextDecoder: {
    new (label?: string, options?: TextDecoderOptions): TextDecoder;
    prototype: TextDecoder;
};
declare const _default: {
    format: typeof format;
    inspect: typeof inspect;
    inherits: typeof inherits;
    deprecate: typeof deprecate;
    promisify: typeof promisify;
    callbackify: typeof callbackify;
    debuglog: typeof debuglog;
    debug: typeof debuglog;
    isArray: typeof isArray;
    isBoolean: typeof isBoolean;
    isNull: typeof isNull;
    isNullOrUndefined: typeof isNullOrUndefined;
    isNumber: typeof isNumber;
    isString: typeof isString;
    isUndefined: typeof isUndefined;
    isRegExp: typeof isRegExp;
    isObject: typeof isObject;
    isDate: typeof isDate;
    isError: typeof isError;
    isFunction: typeof isFunction;
    isPrimitive: typeof isPrimitive;
    isBuffer: typeof isBuffer;
    types: {
        isArray: typeof isArray;
        isBoolean: typeof isBoolean;
        isNull: typeof isNull;
        isNullOrUndefined: typeof isNullOrUndefined;
        isNumber: typeof isNumber;
        isString: typeof isString;
        isUndefined: typeof isUndefined;
        isRegExp: typeof isRegExp;
        isObject: typeof isObject;
        isDate: typeof isDate;
        isError: typeof isError;
        isFunction: typeof isFunction;
        isPrimitive: typeof isPrimitive;
        isBuffer: typeof isBuffer;
    };
    TextEncoder: {
        new (): TextEncoder;
        prototype: TextEncoder;
    };
    TextDecoder: {
        new (label?: string, options?: TextDecoderOptions): TextDecoder;
        prototype: TextDecoder;
    };
};
export default _default;
//# sourceMappingURL=util.d.ts.map