import { Browser } from '../../shared/consts.js'; import * as React from 'react'; import { DependencyList, Dispatch, EffectCallback, SetStateAction } from 'react'; export declare function browserType(): Browser; export declare function base64ToBlob(imageAsBase64: string): Promise; export declare function stringToArrayBuffer(stringToConvert: string): ArrayBuffer; export declare function stringToUint8Array(stringToConvert: string): Uint8Array; export declare function convertBase64ToFile(fileName: string, base64: string, _mimeType?: string): File; export declare function readFileAs_ArrayBuffer(file: File): Promise; export declare const readFileContent: typeof readFileAs_ArrayBuffer; export declare function readFileAs_BinaryString(file: File): Promise; export declare function readFileAs_DataURL(file: File): Promise; export declare function readFileAs_Text(file: File): Promise; export declare function _className(...classes: (string | boolean | undefined)[]): string; export declare function HOOK(fc: React.FC, props?: any): React.ReactNode; export declare function HOOK_useState(initialState: S | (() => S)): [S, Dispatch>]; export declare function HOOK_useEffect(effect: EffectCallback, deps?: DependencyList): void; export declare const HOOK_useEffectAsync: (action: () => Promise, deps?: DependencyList, destructor?: () => void) => void; /** * Prevents default behaviour and stops propagation * @param e MouseEvent | React.MouseEvent | KeyboardEvent | React.KeyboardEvent */ export declare const stopPropagation: (e: MouseEvent | React.MouseEvent | KeyboardEvent | React.KeyboardEvent) => void; type MouseClickActions = { left?: () => void; middle?: () => void; right?: () => void; }; export declare const mouseEventHandler: (e: React.MouseEvent | MouseEvent, actions: MouseClickActions) => void | undefined; export declare const stringReplacer: (_content: string, _toReplace: string, replacer: (match: string, i: number) => JSX.Element) => React.ReactNode[]; export {};