import * as React from 'react'; import { providers } from '@logilab/cwclientlibjs'; import { EntityRelationProps, EntityRelationState, EntityRelation } from './EntityRelation'; import { ProvidersContext } from './commons'; /** * Component for rendering an arbitrary entity relation */ export declare class DefaultEntityRelation extends EntityRelation { static contextType: React.Context; context: React.ContextType; static defaultProps: { editable: boolean; className: string; onClickGotoTarget: (eid: number) => void; onClickEdit: (relation: providers.EntityRelationSchema) => void; getTargetLink: (eid: number) => string; renderDisplayValue: (entity: providers.Entity, schema: providers.EntitySchema) => JSX.Element; renderTitle: (component: EntityRelation) => JSX.Element; renderEditButton: (component: EntityRelation) => JSX.Element; renderRelationItem: (component: EntityRelation, eid: number, index: number) => JSX.Element; renderRelationValues: (component: EntityRelation) => JSX.Element; render: (component: EntityRelation) => JSX.Element; }; state: EntityRelationState; _isMounted: boolean; constructor(props: Readonly); componentDidMount(): void; componentWillUnmount(): void; render(): JSX.Element; }