import React from 'react'; import { Theme } from '../cn'; export declare type LinkProps = { /** * Иконка ссылки */ icon?: React.ReactNode; /** * Позиционирование иконки в ссылке */ iconPosition?: 'left' | 'right'; /** * Текст ссылки */ text?: React.ReactNode; /** * href ссылки */ url?: string; /** * Указание на загрузку, вместо открытия и указание имени файла */ download?: string | boolean; /** * target ссылки */ target?: '_self' | '_blank' | '_parent' | '_top'; /** * Последовательность перехода между контролами при нажатии на Tab */ tabIndex?: number; /** * Управление возможностью клика по ссылке */ disabled?: boolean; /** * Управление состоянием ссылки выбран/не выбран */ checked?: boolean; /** * Псевдо-ссылка (border-bottom: dashed) */ pseudo?: boolean; /** * Тип ссылки */ view?: 'default' | 'blue'; /** * Размер компонента */ size?: 'xs' | 's' | 'm' | 'l' | 'xl'; /** * Дочерние элементы `Link` */ children?: React.ReactNode; /** * Тема компонента */ theme?: Theme; /** * Дополнительный класс */ className?: string; /** * Идентификатор компонента в DOM */ id?: string; /** * Обработчик клика но ссылке */ onClick?: (event?: React.MouseEvent) => void; /** * Обработчик фокуса компонента */ onFocus?: (event?: React.FocusEvent) => void; /** * Обработчик снятия фокуса компонента */ onBlur?: (event?: React.FocusEvent) => void; /** * Обработчик события наведения курсора на ссылку */ onMouseEnter?: (event?: React.MouseEvent) => void; /** * Обработчик события снятия курсора с ссылки */ onMouseLeave?: (event?: React.MouseEvent) => void; /** * Обработчик клика по disabled ссылке */ onDisabledClick?: (event?: React.MouseEvent) => void; /** * Идентификатор для систем автоматизированного тестирования */ 'data-test-id'?: string; }; /** * Компонент ссылки. */ export declare class Link extends React.PureComponent { protected cn: (this: void | { props?: Record; }, elementNameOrMods?: string | { [key: string]: string | number | boolean; }, mods?: { [key: string]: string | number | boolean; }) => string; static defaultProps: Partial; state: { hovered: boolean; focused: boolean; }; private root; render(): React.DetailedReactHTMLElement<{ 'data-test-id': string; download?: any; href?: string; hrefLang?: string; media?: string; ping?: string; rel?: string; target?: string; type?: string; referrerPolicy?: string; defaultChecked?: boolean; defaultValue?: string | number | string[]; suppressContentEditableWarning?: boolean; suppressHydrationWarning?: boolean; accessKey?: string; className?: string; contentEditable?: boolean | "inherit" | "true" | "false"; contextMenu?: string; dir?: string; draggable?: boolean | "true" | "false"; hidden?: boolean; id?: string; lang?: string; placeholder?: string; slot?: string; spellCheck?: boolean | "true" | "false"; style?: React.CSSProperties; tabIndex?: number; title?: string; translate?: "yes" | "no"; radioGroup?: string; role?: string; about?: string; datatype?: string; inlist?: any; prefix?: string; property?: string; resource?: string; typeof?: string; vocab?: string; autoCapitalize?: string; autoCorrect?: string; autoSave?: string; color?: string; itemProp?: string; itemScope?: boolean; itemType?: string; itemID?: string; itemRef?: string; results?: number; security?: string; unselectable?: "off" | "on"; inputMode?: "text" | "email" | "tel" | "none" | "url" | "numeric" | "decimal" | "search"; is?: string; 'aria-activedescendant'?: string; 'aria-atomic'?: boolean | "true" | "false"; 'aria-autocomplete'?: "none" | "inline" | "list" | "both"; 'aria-busy'?: boolean | "true" | "false"; 'aria-checked'?: boolean | "true" | "false" | "mixed"; 'aria-colcount'?: number; 'aria-colindex'?: number; 'aria-colspan'?: number; 'aria-controls'?: string; 'aria-current'?: boolean | "time" | "date" | "true" | "false" | "page" | "step" | "location"; 'aria-describedby'?: string; 'aria-details'?: string; 'aria-disabled'?: boolean | "true" | "false"; 'aria-dropeffect'?: "link" | "copy" | "none" | "popup" | "execute" | "move"; 'aria-errormessage'?: string; 'aria-expanded'?: boolean | "true" | "false"; 'aria-flowto'?: string; 'aria-grabbed'?: boolean | "true" | "false"; 'aria-haspopup'?: boolean | "dialog" | "menu" | "grid" | "true" | "false" | "listbox" | "tree"; 'aria-hidden'?: boolean | "true" | "false"; 'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling"; 'aria-keyshortcuts'?: string; 'aria-label'?: string; 'aria-labelledby'?: string; 'aria-level'?: number; 'aria-live'?: "off" | "assertive" | "polite"; 'aria-modal'?: boolean | "true" | "false"; 'aria-multiline'?: boolean | "true" | "false"; 'aria-multiselectable'?: boolean | "true" | "false"; 'aria-orientation'?: "horizontal" | "vertical"; 'aria-owns'?: string; 'aria-placeholder'?: string; 'aria-posinset'?: number; 'aria-pressed'?: boolean | "true" | "false" | "mixed"; 'aria-readonly'?: boolean | "true" | "false"; 'aria-relevant'?: "text" | "additions" | "additions text" | "all" | "removals"; 'aria-required'?: boolean | "true" | "false"; 'aria-roledescription'?: string; 'aria-rowcount'?: number; 'aria-rowindex'?: number; 'aria-rowspan'?: number; 'aria-selected'?: boolean | "true" | "false"; 'aria-setsize'?: number; 'aria-sort'?: "none" | "ascending" | "descending" | "other"; 'aria-valuemax'?: number; 'aria-valuemin'?: number; 'aria-valuenow'?: number; 'aria-valuetext'?: string; children?: React.ReactNode; dangerouslySetInnerHTML?: { __html: string; }; onCopy?: (event: React.ClipboardEvent) => void; onCopyCapture?: (event: React.ClipboardEvent) => void; onCut?: (event: React.ClipboardEvent) => void; onCutCapture?: (event: React.ClipboardEvent) => void; onPaste?: (event: React.ClipboardEvent) => void; onPasteCapture?: (event: React.ClipboardEvent) => void; onCompositionEnd?: (event: React.CompositionEvent) => void; onCompositionEndCapture?: (event: React.CompositionEvent) => void; onCompositionStart?: (event: React.CompositionEvent) => void; onCompositionStartCapture?: (event: React.CompositionEvent) => void; onCompositionUpdate?: (event: React.CompositionEvent) => void; onCompositionUpdateCapture?: (event: React.CompositionEvent) => void; onFocus?: (event: React.FocusEvent) => void; onFocusCapture?: (event: React.FocusEvent) => void; onBlur?: (event: React.FocusEvent) => void; onBlurCapture?: (event: React.FocusEvent) => void; onChange?: (event: React.FormEvent) => void; onChangeCapture?: (event: React.FormEvent) => void; onBeforeInput?: (event: React.FormEvent) => void; onBeforeInputCapture?: (event: React.FormEvent) => void; onInput?: (event: React.FormEvent) => void; onInputCapture?: (event: React.FormEvent) => void; onReset?: (event: React.FormEvent) => void; onResetCapture?: (event: React.FormEvent) => void; onSubmit?: (event: React.FormEvent) => void; onSubmitCapture?: (event: React.FormEvent) => void; onInvalid?: (event: React.FormEvent) => void; onInvalidCapture?: (event: React.FormEvent) => void; onLoad?: (event: React.SyntheticEvent) => void; onLoadCapture?: (event: React.SyntheticEvent) => void; onError?: (event: React.SyntheticEvent) => void; onErrorCapture?: (event: React.SyntheticEvent) => void; onKeyDown?: (event: React.KeyboardEvent) => void; onKeyDownCapture?: (event: React.KeyboardEvent) => void; onKeyPress?: (event: React.KeyboardEvent) => void; onKeyPressCapture?: (event: React.KeyboardEvent) => void; onKeyUp?: (event: React.KeyboardEvent) => void; onKeyUpCapture?: (event: React.KeyboardEvent) => void; onAbort?: (event: React.SyntheticEvent) => void; onAbortCapture?: (event: React.SyntheticEvent) => void; onCanPlay?: (event: React.SyntheticEvent) => void; onCanPlayCapture?: (event: React.SyntheticEvent) => void; onCanPlayThrough?: (event: React.SyntheticEvent) => void; onCanPlayThroughCapture?: (event: React.SyntheticEvent) => void; onDurationChange?: (event: React.SyntheticEvent) => void; onDurationChangeCapture?: (event: React.SyntheticEvent) => void; onEmptied?: (event: React.SyntheticEvent) => void; onEmptiedCapture?: (event: React.SyntheticEvent) => void; onEncrypted?: (event: React.SyntheticEvent) => void; onEncryptedCapture?: (event: React.SyntheticEvent) => void; onEnded?: (event: React.SyntheticEvent) => void; onEndedCapture?: (event: React.SyntheticEvent) => void; onLoadedData?: (event: React.SyntheticEvent) => void; onLoadedDataCapture?: (event: React.SyntheticEvent) => void; onLoadedMetadata?: (event: React.SyntheticEvent) => void; onLoadedMetadataCapture?: (event: React.SyntheticEvent) => void; onLoadStart?: (event: React.SyntheticEvent) => void; onLoadStartCapture?: (event: React.SyntheticEvent) => void; onPause?: (event: React.SyntheticEvent) => void; onPauseCapture?: (event: React.SyntheticEvent) => void; onPlay?: (event: React.SyntheticEvent) => void; onPlayCapture?: (event: React.SyntheticEvent) => void; onPlaying?: (event: React.SyntheticEvent) => void; onPlayingCapture?: (event: React.SyntheticEvent) => void; onProgress?: (event: React.SyntheticEvent) => void; onProgressCapture?: (event: React.SyntheticEvent) => void; onRateChange?: (event: React.SyntheticEvent) => void; onRateChangeCapture?: (event: React.SyntheticEvent) => void; onSeeked?: (event: React.SyntheticEvent) => void; onSeekedCapture?: (event: React.SyntheticEvent) => void; onSeeking?: (event: React.SyntheticEvent) => void; onSeekingCapture?: (event: React.SyntheticEvent) => void; onStalled?: (event: React.SyntheticEvent) => void; onStalledCapture?: (event: React.SyntheticEvent) => void; onSuspend?: (event: React.SyntheticEvent) => void; onSuspendCapture?: (event: React.SyntheticEvent) => void; onTimeUpdate?: (event: React.SyntheticEvent) => void; onTimeUpdateCapture?: (event: React.SyntheticEvent) => void; onVolumeChange?: (event: React.SyntheticEvent) => void; onVolumeChangeCapture?: (event: React.SyntheticEvent) => void; onWaiting?: (event: React.SyntheticEvent) => void; onWaitingCapture?: (event: React.SyntheticEvent) => void; onAuxClick?: (event: React.MouseEvent) => void; onAuxClickCapture?: (event: React.MouseEvent) => void; onClick?: (event: React.MouseEvent) => void; onClickCapture?: (event: React.MouseEvent) => void; onContextMenu?: (event: React.MouseEvent) => void; onContextMenuCapture?: (event: React.MouseEvent) => void; onDoubleClick?: (event: React.MouseEvent) => void; onDoubleClickCapture?: (event: React.MouseEvent) => void; onDrag?: (event: React.DragEvent) => void; onDragCapture?: (event: React.DragEvent) => void; onDragEnd?: (event: React.DragEvent) => void; onDragEndCapture?: (event: React.DragEvent) => void; onDragEnter?: (event: React.DragEvent) => void; onDragEnterCapture?: (event: React.DragEvent) => void; onDragExit?: (event: React.DragEvent) => void; onDragExitCapture?: (event: React.DragEvent) => void; onDragLeave?: (event: React.DragEvent) => void; onDragLeaveCapture?: (event: React.DragEvent) => void; onDragOver?: (event: React.DragEvent) => void; onDragOverCapture?: (event: React.DragEvent) => void; onDragStart?: (event: React.DragEvent) => void; onDragStartCapture?: (event: React.DragEvent) => void; onDrop?: (event: React.DragEvent) => void; onDropCapture?: (event: React.DragEvent) => void; onMouseDown?: (event: React.MouseEvent) => void; onMouseDownCapture?: (event: React.MouseEvent) => void; onMouseEnter?: (event: React.MouseEvent) => void; onMouseLeave?: (event: React.MouseEvent) => void; onMouseMove?: (event: React.MouseEvent) => void; onMouseMoveCapture?: (event: React.MouseEvent) => void; onMouseOut?: (event: React.MouseEvent) => void; onMouseOutCapture?: (event: React.MouseEvent) => void; onMouseOver?: (event: React.MouseEvent) => void; onMouseOverCapture?: (event: React.MouseEvent) => void; onMouseUp?: (event: React.MouseEvent) => void; onMouseUpCapture?: (event: React.MouseEvent) => void; onSelect?: (event: React.SyntheticEvent) => void; onSelectCapture?: (event: React.SyntheticEvent) => void; onTouchCancel?: (event: React.TouchEvent) => void; onTouchCancelCapture?: (event: React.TouchEvent) => void; onTouchEnd?: (event: React.TouchEvent) => void; onTouchEndCapture?: (event: React.TouchEvent) => void; onTouchMove?: (event: React.TouchEvent) => void; onTouchMoveCapture?: (event: React.TouchEvent) => void; onTouchStart?: (event: React.TouchEvent) => void; onTouchStartCapture?: (event: React.TouchEvent) => void; onPointerDown?: (event: React.PointerEvent) => void; onPointerDownCapture?: (event: React.PointerEvent) => void; onPointerMove?: (event: React.PointerEvent) => void; onPointerMoveCapture?: (event: React.PointerEvent) => void; onPointerUp?: (event: React.PointerEvent) => void; onPointerUpCapture?: (event: React.PointerEvent) => void; onPointerCancel?: (event: React.PointerEvent) => void; onPointerCancelCapture?: (event: React.PointerEvent) => void; onPointerEnter?: (event: React.PointerEvent) => void; onPointerEnterCapture?: (event: React.PointerEvent) => void; onPointerLeave?: (event: React.PointerEvent) => void; onPointerLeaveCapture?: (event: React.PointerEvent) => void; onPointerOver?: (event: React.PointerEvent) => void; onPointerOverCapture?: (event: React.PointerEvent) => void; onPointerOut?: (event: React.PointerEvent) => void; onPointerOutCapture?: (event: React.PointerEvent) => void; onGotPointerCapture?: (event: React.PointerEvent) => void; onGotPointerCaptureCapture?: (event: React.PointerEvent) => void; onLostPointerCapture?: (event: React.PointerEvent) => void; onLostPointerCaptureCapture?: (event: React.PointerEvent) => void; onScroll?: (event: React.UIEvent) => void; onScrollCapture?: (event: React.UIEvent) => void; onWheel?: (event: React.WheelEvent) => void; onWheelCapture?: (event: React.WheelEvent) => void; onAnimationStart?: (event: React.AnimationEvent) => void; onAnimationStartCapture?: (event: React.AnimationEvent) => void; onAnimationEnd?: (event: React.AnimationEvent) => void; onAnimationEndCapture?: (event: React.AnimationEvent) => void; onAnimationIteration?: (event: React.AnimationEvent) => void; onAnimationIterationCapture?: (event: React.AnimationEvent) => void; onTransitionEnd?: (event: React.TransitionEvent) => void; onTransitionEndCapture?: (event: React.TransitionEvent) => void; ref?: React.LegacyRef; key?: React.Key; }, HTMLAnchorElement>; private handleClick; private handleFocus; private handleBlur; private handleMouseEnter; handleMouseLeave: (event: any) => void; /** * Возвращает корневой `HTMLElement` компонента. */ getNode(): HTMLElement; /** * Ставит фокус на ссылку. */ focus(): void; /** * Убирает фокус с ссылки. */ blur(): void; } declare const _default: React.ForwardRefExoticComponent> & Link; export default _default;