Files
documentation/node_modules/micromark-extension-mdx-jsx/lib/jsx-flow.d.ts
2024-03-22 03:47:51 +05:30

31 lines
959 B
TypeScript

/**
* Parse JSX (flow).
*
* @param {Acorn | undefined} acorn
* Acorn parser to use (optional).
* @param {Options} options
* Configuration.
* @returns {Construct}
* Construct.
*/
export function jsxFlow(acorn: Acorn | undefined, options: Options): Construct;
export type Acorn = import('micromark-factory-mdx-expression').Acorn;
export type AcornOptions = import('micromark-factory-mdx-expression').AcornOptions;
export type Construct = import('micromark-util-types').Construct;
export type State = import('micromark-util-types').State;
export type TokenizeContext = import('micromark-util-types').TokenizeContext;
export type Tokenizer = import('micromark-util-types').Tokenizer;
/**
* Configuration.
*/
export type Options = {
/**
* Acorn options.
*/
acornOptions: AcornOptions | undefined;
/**
* Whether to add `estree` fields to tokens with results from acorn.
*/
addResult: boolean | undefined;
};