/** * @typedef {import('../core.js').ProcessorOptions} ProcessorOptions * * @typedef RuntimeOptions * @property {*} Fragment Symbol to use for fragments * @property {*} jsx Function to generate an element with static children * @property {*} jsxs Function to generate an element with dynamic children * * @typedef ProviderOptions * @property {*} [useMDXComponents] Function to get `MDXComponents` from context * * @typedef {RuntimeOptions & ProviderOptions} RunnerOptions * * @typedef {Omit } EvaluateProcessorOptions * * @typedef {EvaluateProcessorOptions & RunnerOptions} EvaluateOptions */ /** * Split compiletime options from runtime options. * * @param {EvaluateOptions} options * @returns {{compiletime: ProcessorOptions, runtime: RunnerOptions}} */ export function resolveEvaluateOptions(options: EvaluateOptions): { compiletime: ProcessorOptions runtime: RunnerOptions } export type ProcessorOptions = import('../core.js').ProcessorOptions export type RuntimeOptions = { /** * Symbol to use for fragments */ Fragment: any /** * Function to generate an element with static children */ jsx: any /** * Function to generate an element with dynamic children */ jsxs: any } export type ProviderOptions = { /** * Function to get `MDXComponents` from context */ useMDXComponents?: any } export type RunnerOptions = RuntimeOptions & ProviderOptions export type EvaluateProcessorOptions = Omit< ProcessorOptions, | 'jsx' | 'jsxImportSource' | 'jsxRuntime' | 'pragma' | 'pragmaFrag' | 'pragmaImportSource' | 'providerImportSource' | 'outputFormat' > export type EvaluateOptions = EvaluateProcessorOptions & RunnerOptions