import { Profile, Trait } from "../../../flex-ui-core/src"; import { TaskContextProps } from "../../context"; import { ErrorDirectory } from "../Definitions"; export declare enum CustomerProfileViewChildrenKeys { profileView = "profile-view", profileDetails = "profile-details", profileAttributes = "profile-attributes" } /** * Properties of CustomerProfileView. * * @typedef CustomerProfileView.CustomerProfileViewProps * @property {Profile} [profile=null] - Profile object with customer data. * @property {Array} [traits=null] - Array of trait mappings and categories. * @property {Function} [getProfileView] - A callback that returns an Profile JSON to be displayed in Profile View. * @property {React.MouseEventHandler} [onClickCancel=undefined] - Action to dismiss the Profile view. */ export interface CustomerProfileViewProps { profile: Profile | null; isFetchingProfile: boolean; fetchingProfileErrorCode: ErrorDirectory | undefined; traits: Array | null; connectorName: string | null; onClickCancel: React.MouseEventHandler | undefined; } /** * Properties of CustomerProfileView. * * @typedef {CustomerProfileView.CustomerProfileViewProps} CustomerProfileView.CustomerProfileViewChildrenProps */ export interface CustomerProfileViewChildrenProps extends TaskContextProps, CustomerProfileViewProps { }