/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ export default function transformErrorMessages(babel: { types: { identifier: (x: string) => string; templateElement: ({}: {}) => string; throwStatement: (x: string) => string; callExpression: (x: string, y: Array) => string; templateLiteral: (x: Array, y: Array) => string; ifStatement: (x: string, y: string, z?: string) => string; unaryExpression: (x: string, y: string) => string; blockStatement: (x: Array) => string; numericLiteral: (x: string) => string; }; }): { visitor: { CallExpression(path: { addComment: (x: string, y: string) => void; replaceWith: (x: string) => void; get: (x: string) => { isIdentifier: ({ name }: Record) => boolean; }; node: { noMinify: string; arguments: Array; }; }, file: { opts: { noMinify: boolean; }; }): void; }; };