import { TextItem } from './ui/tree'; import React from 'react'; import { PreparedLink } from './ref-link'; import { TreeRowProps, NavTree } from './ui/tree-render'; import { Reflection, ReflectionId, ReflectionPath } from '@tygen/reflector'; export declare class HeaderItem extends TextItem<{ kind: 'header'; selected?: boolean; }, StructureItem> { } export declare class ReflectionItem extends TextItem<{ kind: 'reflection'; link: PreparedLink; id?: ReflectionId; path?: ReflectionPath; reflection?: Reflection; selected?: boolean; }, ReflectionItem> { static fromReflection(reflection: Reflection): ReflectionItem; static fromId(id: ReflectionId | ReflectionPath): ReflectionItem; } export declare type StructureItem = HeaderItem | ReflectionItem; export declare class ReflectionNode extends React.Component & { wide?: boolean; }> { render(): JSX.Element; } export declare class HeaderNode extends React.Component> { render(): JSX.Element; } export declare type RenderWith = { [key: string]: (row: TreeRowProps, structure: StructureProps) => React.ReactElement>; }; export interface StructureProps { tree: NavTree; renderWith?: RenderWith; wide?: boolean; } export declare class Structure extends React.Component { static defaultProps: { renderWith: RenderWith; }; render(): JSX.Element; renderItem(props: TreeRowProps): React.ReactElement> | null; onSelect(e: React.KeyboardEvent, item: StructureItem): void; } //# sourceMappingURL=structure.d.ts.map