import { HighlightOptions } from '@o/utils'; import { CSSPropertySet, GlossProps } from 'gloss'; import * as React from 'react'; import { Size } from '../Space'; import { SimpleTextPropsBase } from './SimpleText'; declare type ChildrenHlFn = (Highlights: any) => JSX.Element | null; export declare type TextProps = GlossProps & React.HTMLAttributes & { color?: CSSPropertySet['color'] | false; editable?: boolean; autoselect?: boolean; selectable?: boolean; onStartEdit?: () => any; onFinishEdit?: (value: string, event: any) => any; onCancelEdit?: (value: string, event: any) => any; nodeRef?: React.RefObject; ellipse?: boolean | number; tagName?: string; lines?: number; alpha?: number; onKeyDown?: Function; opacity?: number; size?: Size; placeholder?: string; lineHeight?: number; sizeLineHeight?: number | boolean; sizeFont?: number | boolean; measure?: boolean; onMeasure?: Function; sizeMethod?: string; highlight?: HighlightOptions; wordBreak?: string; children: React.ReactNode | ChildrenHlFn; ignoreColor?: boolean; renderAsHtml?: boolean; }>; export declare type Highlights = { highlights: string[]; }; export declare class Text extends React.PureComponent { selected: boolean; editable: boolean; static contextType: React.Context; static defaultProps: { tagName: string; }; state: { isEditing: boolean; doClamp: boolean; textHeight: number; }; componentDidMount(): void; ref: React.RefObject; get nodeRef(): any; get node(): any; componentDidUpdate(): void; measure(): void; handleProps(props: any): void; focus(): void; get value(): any; finishEdit: (value: string, event: React.KeyboardEvent) => void; handleKeydown: (event: React.KeyboardEvent) => void; handleDoubleClick: (event: any) => void; onBlur: (event: FocusEvent) => void; render(): JSX.Element; } export {}; //# sourceMappingURL=Text.d.ts.map