import { RefCallback } from 'react'; import { PlatformType } from './lib/platform'; import { Insets } from '@vkontakte/vk-bridge'; export type AnyFunction = (...args: any[]) => any; export type AlignType = 'left' | 'center' | 'right'; export type RefWithCurrent = { current: T | null; }; export type Ref = RefCallback | RefWithCurrent; export interface HasRootRef { getRootRef?: Ref; } export interface HasRef { getRef?: Ref; } export interface HasAlign { align?: AlignType; } export interface HasPlatform { /** * @ignore */ platform?: PlatformType; } export interface HasInsets { /** * @ignore */ insets?: Partial; } export interface Version { major: number; minor?: number; patch?: number; }