import { Attributes } from 'graphology-types'; import React, { CSSProperties, ReactElement } from 'react'; import { Sigma } from 'sigma'; import { PrimitivesDeclaration, SigmaOptions } from 'sigma/types'; import { GraphType } from '../types'; /** * Properties for `SigmaContainer` component */ export interface SigmaContainerProps { /** * Graphology instance or constructor */ graph?: GraphType; /** * Sigma settings */ options?: Partial>; /** * HTML id */ id?: string; /** * HTML class */ className?: string; /** * HTML CSS style */ style?: CSSProperties; } /** * The `SigmaContainer` component is responsible of create the Sigma instance, and provide it to its child components using a React Context that can be accessible via the hook {@link useSigma}. * * ```jsx * * * *``` * * See {@link SigmaContainerProps} for the component's properties. * * @category Component */ export declare const SigmaContainer: (props: SigmaContainerProps & { children?: React.ReactNode | undefined; } & React.RefAttributes | null>) => ReactElement;