import React, { ReactNode } from 'react'; import { OSType } from './lib/platform'; import { Insets } from '@vkontakte/vk-bridge'; export type FormStatusType = 'default' | 'error' | 'valid'; export type AlignType = 'left' | 'center' | 'right'; export type OldRef = (el: T) => void; export type RefWithCurrent = { current: T | null; }; export type Ref = OldRef | RefWithCurrent; export interface HasRootRef { getRootRef?: Ref; } export interface HasRef { getRef?: Ref; } export interface HasDangerHTML { dangerouslySetInnerHTML?: { __html: string; }; } export interface HasFormStatus { status?: FormStatusType; } export interface HasFormLabels { top?: ReactNode; bottom?: ReactNode; } export interface HasAlign { align?: AlignType; } export interface HasPlatform { /** * @ignore */ platform?: OSType; } export interface HasInsets { /** * @ignore */ insets?: Partial; } export interface HasChildren { children?: React.ReactNode; }