@meduza-bank/ui-kit
Version:
UI Kit of the bank of Meme World "Peoples Bank Memes" or "Meduza Bank"
33 lines (32 loc) • 1.56 kB
TypeScript
import { type ClassValue } from "clsx";
import { useLayoutEffect } from "react";
import { Area } from "react-easy-crop";
export declare function cn(...inputs: ClassValue[]): string;
export declare const useIsomorphicLayoutEffect: typeof useLayoutEffect;
type UseMediaQueryOptions = {
defaultValue?: boolean;
initializeWithValue?: boolean;
};
export declare function useMediaQuery(query: string, { defaultValue, initializeWithValue, }?: UseMediaQueryOptions): boolean;
export declare function nFormatter(num: number, digits?: number): string;
export declare function usernameFirstLiterals(username: string): string;
export declare function dateFormat(date: Date, miniYear?: boolean): string;
export declare const createImage: (url: string) => Promise<HTMLImageElement>;
export declare function getRadianAngle(degreeValue: number): number;
/**
* Returns the new bounding area of a rotated rectangle.
*/
export declare function rotateSize(width: number, height: number, rotation: number): {
width: number;
height: number;
};
/**
* This function was adapted from the one in the ReadMe of https://github.com/DominicTobias/react-image-crop
*/
export declare function getPreviewPhoto(imageSrc: string, pixelCrop: Area, rotation?: number, flip?: {
horizontal: boolean;
vertical: boolean;
}): Promise<string | null>;
export declare function range(startOrEnd: number, end?: number, step?: number): Generator<number, void, unknown>;
export declare function generateRangeArray(startOrEnd: number, end?: number, step?: number): number[];
export {};