import { type ParserOptions } from '@babel/parser'; import type { Options } from 'recast'; import type { Maybe, Script } from './types'; export type ParsedFile = Maybe<{ script: Script; start: number; end: number; }>; export declare function parseJS(str: string, config?: Partial): Script; export declare function parseJSON(str: string): any; type PrintOptions = Options & { pretty?: boolean; }; export declare function printJS(script: Script, options?: PrintOptions): Promise<{ code: string; map?: any; }>; export {};