import type { ParseResult, ParserOptions } from '@babel/parser';
import type { File } from '@babel/types';
import { LRUCache } from 'lru-cache';
export type BabelParseOptions = ParserOptions & {
    cache?: boolean | undefined;
    cacheKey?: string | undefined;
    cacheMaxEntries?: number | undefined;
    cacheMaxSourceLength?: number | undefined;
};
export declare const parseCache: LRUCache<string, ParseResult<File>>;
export declare function genCacheKey(source: string, options: any): string;
export declare function babelParse(code: string, opts?: BabelParseOptions): ParseResult<File>;
