import React from 'react'; import Alert from './Alert'; import confirm from './confirmation'; import router from './router'; import toggleCheckBoxes from './toggleCheckBoxes'; import uploadHandler from './uploadHandler'; import urlParser from './urlParser'; export declare const renderFullName: (data: any) => any; export declare const renderUserFullName: (data: any) => any; export declare const setTitle: (title: string, force: boolean) => void; export declare const setBadge: (count: number, title: string) => void; export declare const reorder: (list: string[], startIndex: number, endIndex: number) => string[]; export declare const generateRandomColorCode: () => string; export declare const isNumeric: (n: any) => boolean; export declare const isTimeStamp: (timestamp: any) => boolean; export declare const range: (start: number, stop: number) => number[]; export declare const intersection: (array1: any[], array2: any[]) => any[]; export declare const union: (array1: any[], array2: any[]) => any[]; export declare const difference: (array1: any[], array2: any[]) => any[]; export { Alert, uploadHandler, router, confirm, toggleCheckBoxes, urlParser }; export declare const can: (actionName: string, currentUser: any) => boolean; /** * Request to get file's URL for view and download * @param {String} - value * @return {String} - URL */ export declare const readFile: (value: string, REACT_APP_API_URL: any) => string; export declare function withProps(Wrapped: new (props: IProps) => React.Component): { new (props: Readonly): { render(): JSX.Element; context: any; setState(state: {} | ((prevState: Readonly<{}>, props: Readonly) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void; forceUpdate(callBack?: (() => void) | undefined): void; readonly props: Readonly<{ children?: React.ReactNode; }> & Readonly; state: Readonly<{}>; refs: { [key: string]: React.ReactInstance; }; }; new (props: IProps, context?: any): { render(): JSX.Element; context: any; setState(state: {} | ((prevState: Readonly<{}>, props: Readonly) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void; forceUpdate(callBack?: (() => void) | undefined): void; readonly props: Readonly<{ children?: React.ReactNode; }> & Readonly; state: Readonly<{}>; refs: { [key: string]: React.ReactInstance; }; }; contextType?: React.Context | undefined; }; export declare function renderWithProps(props: Props, Wrapped: new (props: Props) => React.Component): JSX.Element; export declare const isValidDate: (date: any) => boolean; export declare const extractAttachment: (attachments: any) => any; export declare const setCookie: (cname: string, cvalue: string, exdays?: number) => void; export declare const getCookie: (cname: any) => string; /** * Generate random string */ export declare const generateRandomString: (len?: number) => string; /** * Generate random int number between 0 and max */ export declare const getRandomNumber: (max?: number) => number; /** * Send desktop notification */ export declare const sendDesktopNotification: (doc: { title: string; content?: string | undefined; }) => void; export declare const roundToTwo: (value: any) => number; export declare function formatValue(value: any): any; export declare function isEmptyContent(content: string): boolean; export declare const isValidUsername: (username: string) => boolean; export declare const storeConstantToStore: (key: any, values: any) => void; export declare const getConstantFromStore: (key: any, isMap?: boolean | undefined, isFlat?: boolean | undefined) => any; export declare const bustIframe: () => void; declare const _default: { renderFullName: (data: any) => any; renderUserFullName: (data: any) => any; setTitle: (title: string, force: boolean) => void; setBadge: (count: number, title: string) => void; reorder: (list: string[], startIndex: number, endIndex: number) => string[]; generateRandomColorCode: () => string; isTimeStamp: (timestamp: any) => boolean; range: (start: number, stop: number) => number[]; intersection: (array1: any[], array2: any[]) => any[]; union: (array1: any[], array2: any[]) => any[]; difference: (array1: any[], array2: any[]) => any[]; can: (actionName: string, currentUser: any) => boolean; readFile: (value: string, REACT_APP_API_URL: any) => string; withProps: typeof withProps; renderWithProps: typeof renderWithProps; isValidDate: (date: any) => boolean; extractAttachment: (attachments: any) => any; setCookie: (cname: string, cvalue: string, exdays?: number) => void; getCookie: (cname: any) => string; generateRandomString: (len?: number) => string; getRandomNumber: (max?: number) => number; sendDesktopNotification: (doc: { title: string; content?: string | undefined; }) => void; roundToTwo: (value: any) => number; formatValue: typeof formatValue; isValidUsername: (username: string) => boolean; storeConstantToStore: (key: any, values: any) => void; getConstantFromStore: (key: any, isMap?: boolean | undefined, isFlat?: boolean | undefined) => any; bustIframe: () => void; isNumeric: (n: any) => boolean; isEmptyContent: typeof isEmptyContent; }; export default _default; //# sourceMappingURL=core.d.ts.map