UNPKG

984 BTypeScriptView Raw
1/**
2 * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 */
7import type { NewPlugin, Options, OptionsReceived } from './types';
8export type { Colors, CompareKeys, Config, Options, OptionsReceived, OldPlugin, NewPlugin, Plugin, Plugins, PrettyFormatOptions, Printer, Refs, Theme, } from './types';
9export declare const DEFAULT_OPTIONS: Options;
10/**
11 * Returns a presentation string of your `val` object
12 * @param val any potential JavaScript object
13 * @param options Custom settings
14 */
15export declare function format(val: unknown, options?: OptionsReceived): string;
16export declare const plugins: {
17 AsymmetricMatcher: NewPlugin;
18 ConvertAnsi: NewPlugin;
19 DOMCollection: NewPlugin;
20 DOMElement: NewPlugin;
21 Immutable: NewPlugin;
22 ReactElement: NewPlugin;
23 ReactTestComponent: NewPlugin;
24};
25export default format;