import { SyntheticEvent } from 'react'; /** * Join modifiers with origin class * @returns `"origin-class origin-class--modifier"` */ export declare function classWithModifiers(originClass: string, ...modifiers: Array): string; export declare function serialize(value?: T | null): string; /** * Stops propagation from container * @param callback any function * @returns mouse event handler */ export declare function stopPropagation(callback?: (() => void) | null): ({ target, currentTarget }: Event | SyntheticEvent) => void; /** * Helps prevent error logs blowing up as a result of expecting an error to be thrown, * when using a library (such as enzyme) * * @param fn Function that you would normally pass to `expect(func).toThrow()` */ export declare function expectToThrow(fn: () => unknown, error?: Parameters[0]): void; /** * 53-bit hash function. * * https://stackoverflow.com/a/52171480/12468111 */ export declare function cyrb53(string: string, seed?: number): number; export declare function elementClick(element?: Element | null): boolean;