import React from 'react'; import { GetLineTypeProps, GetStepTypeProps, StatusItem } from './types'; import { DataType, LineType, StepPosition } from './constants'; /** * Generate function, that checks, whether data elements type in "data" matches passed type. * * @param {DataType} type - Passed type * * @returns {function} Function, that checks whether type of each data element is passed type? */ export declare const contains: (type: DataType) => (data: string[] | StatusItem[]) => boolean | null; /** * If there are objects in data and at least one of them contains "type" field - component is "custom". * Step type is set by user through "typeField". * * @param {string[] | StatusItem[]} data - Component data * @param {string | undefined} typeField - Type field * * @returns {boolean} Is component custom? */ export declare const isCustom: (data: string[] | StatusItem[], typeField?: string | undefined) => boolean; /** * Get text for label * * @param {DataType} dataType - Component data * @param {string | StatusItem} item - Step name or description of custom step * @param {string | undefined} textField - Field from which label text is extracted works only if there are objects in data * * @returns {string} Text for label */ export declare const getLabelText: (dataType: DataType, item: string | StatusItem, textField?: string | undefined) => string; /** * Get step position * * @param {number} index - Index of step * @param {number} currentIndex - Index of current value of statusbar * @param {boolean} isCustomChildren - Indicates whether step is custom * * @returns {StepPosition | null} Position of step */ export declare const getStepPosition: (index: number, currentIndex: number, isCustomChildren: boolean) => StepPosition | null; /** * Get type of data * * @param {string[] | StatusItem[]} data - Data * * @returns {DataType} Type of data */ export declare const getDataType: (data: string[] | StatusItem[]) => DataType; /** * If data has a type that cannot be placed in tooltip, then tooltip is not rendered * @param {unknown} data - Data for rendering inside tooltip * * @returns {React.ReactNode | null} - Valid data for tooltip or null */ export declare const getValidTooltip: (data: unknown) => React.ReactNode; /** * Get Type for step * @param {GetStepTypeProps} props - Props of getStepType * * @returns {string | null} Type for step or null */ export declare const getStepType: (props: GetStepTypeProps) => string | null; /** * Get Type for line * @param {GetLineTypeProps} props - Props of getLineType * * @returns {LineType | null} Type for line or null */ export declare const getLineType: (props: GetLineTypeProps) => LineType | null;