phx-react
Version:
PHX REACT
14 lines (13 loc) • 753 B
TypeScript
import { INavItem, IResultItemSearchItem } from './types';
export declare function normalizeString(rawValue: string): string;
export declare function flattenMenuTree(tree: Array<INavItem>): Array<IResultItemSearchItem>;
export declare const delay: (ms: number) => Promise<unknown>;
export declare function enablePer(code: any, arr: any): any;
export declare const checkChildBefore: (item: any, currentItem: any) => boolean;
export declare const normalizeCode: (raw: string) => string;
export declare const htmlToText: (html?: string | null) => string;
export declare const truncateByChars: (text: string, limit: number) => {
short: string;
isLong: boolean;
};
export declare const getBoldIconColor: (isActive: boolean) => "#4B5563" | "#111827";