/**
* — the lesson in a React page.
*
* const lesson = useRef(null)
* e.type === 'wb:leave' && router.back()} ref={lesson} />
* const png = await lesson.current?.command('exportPng')
*/
import type { CSSProperties } from 'react';
import { type CommandResult, type LessonCommand, type LessonEvent } from './embed.js';
export type { CommandResult, LessonCommand, LessonEvent } from './embed.js';
export type WhiteboardLessonProps = {
url: string;
onEvent?: (event: LessonEvent) => void;
height?: string;
title?: string;
className?: string;
style?: CSSProperties;
};
export type WhiteboardLessonHandle = {
command(command: C): Promise;
};
export declare const WhiteboardLesson: import("react").ForwardRefExoticComponent>;