import { FC, ReactElement } from 'react';
import { MDXRemoteProps } from '../mdx-remote.js';
import '../evaluate.js';
import '../../types.js';
import 'mdast';
import 'next';
import 'zod';
import '../../server/schemas.js';
import './lib/index.js';
import 'rehype-katex/lib/index.js';
import 'better-react-mathjax';
import 'rehype-pretty-code';
import '../../types.generated.js';
import '@mdx-js/mdx';
import 'rehype-katex';
import '../mdx-components.js';
import 'url';
import 'next/link.js';
import 'next/image.js';
import './image-zoom.js';
import 'next/image';
import '../mdx-components/anchor.js';
import 'next/link';
type PlaygroundProps = {
/**
* String with source MDX.
* @example '# hello world
nice to see you'
*/
source: string;
/**
* Fallback component for loading.
* @default null
*/
fallback?: ReactElement | null;
} & Pick;
/**
* A built-in component lets you write Nextra-compatible MDX that renders only on the client.
* @example
*
*
* @usage
* ```mdx filename="Basic Usage"
* import { Playground } from 'nextra/components'
*
* # Playground
*
* Below is a playground component. It mixes into the rest of your MDX perfectly.
*
* }}
* />
* ```
*
* You may also specify a fallback component like so:
*
* ```mdx filename="Usage with Fallback"
* import { Playground } from 'nextra/components'
*
* }}
* fallback={Loading playground...
}
* />
* ```
*
* ### Avoiding unstyled outputs
*
* To prevent unstyled elements, import `useMDXComponents` from your
* `mdx-components` file. Call this function and pass the returned components to
* the `components` prop. You can also include your custom components as the first
* argument:
*
* ```mdx {1,6-8}
* import { Playground } from 'nextra/components'
* import { useMDXComponents } from '../path/to/my/mdx-components'
*
*
* })}
* fallback={Loading playground...
}
* />
* ```
*/
declare const Playground: FC;
export { Playground };