import { default as default_2 } from 'p5'; import { JSX } from 'react/jsx-runtime'; import * as React_2 from 'react'; import { ReactNode } from 'react'; export declare const CanvasContainerClassName = "canvas-container"; export declare const P5Canvas: React_2.MemoExoticComponent string | number | bigint | boolean | Iterable | Promise> | Iterable | null | undefined> | JSX.Element | null>>; export declare type P5CanvasInstance = default_2 & { updateWithProps?: (props: Props) => void; [key: string]: unknown; }; declare interface P5CanvasInternalProps { sketch?: Sketch; updater?: Updater; fallback?: () => ReactNode; loading?: () => ReactNode; error?: (error: unknown) => ReactNode; children?: ReactNode; } export declare type P5CanvasProps = P5CanvasInternalProps & Props; export declare type Sketch = (instance: P5CanvasInstance) => void; export declare type SketchProps = Record; export declare type Updater = (instance: P5CanvasInstance, props: Props) => void; export { }