import { visit } from 'unist-util-visit';

type Node = Parameters<typeof visit>[0];
type Tree = Node;

interface VFile {
    history: string[];
    cwd: string;
}
interface Options {
    /**
     * Specify custom component name, component will receive sandpack files as prop
     * @default Sandpack
     */
    componentName?: string | string[];
}
declare const transform: (options?: Options) => (tree: Tree, file: VFile) => Promise<void>;

export { transform as remarkSandpack };
