import { dia } from '@joint/core'; import type { OmitWithoutIndexSignature } from '../../types'; import { type GraphProps } from '../graph-provider/graph-provider'; export type OnPaperRenderElement = (element: dia.Element, portalElement: SVGElement) => void; export type ReactPaperOptions = OmitWithoutIndexSignature; export interface PaperOptions extends ReactPaperOptions { readonly scale?: number; /** * A function that is called when the paper is ready. * @param element - The element that is being rendered * @param portalElement - The portal element that is being rendered * @returns */ readonly onRenderElement?: OnPaperRenderElement; } export interface PaperProviderProps extends ReactPaperOptions, GraphProps { readonly children: React.ReactNode; } /** * PaperProvider is a React component that provides a context for managing the state of the paper. * It uses the PaperContext to provide a value to its children. * The context value is an array containing the current paper context and a function to update it. * @param props - The props object containing the children components. * @param props.children - The children components that will have access to the PaperContext. * @returns - A JSX element that wraps the children with the PaperContext provider. * @group Components */ export declare function PaperProvider(props: Readonly): import("react/jsx-runtime").JSX.Element;