@hhgtech/hhg-components
Version:
Hello Health Group common components
55 lines (54 loc) • 2.97 kB
TypeScript
import { LocaleType } from "../../interfaces/types";
import { VideoItemType, VideoItemTypeApi } from "../../interfaces/types/Video";
import { HealthCare, HealthCareApi, HealthSearchDoctor, HealthTool, HealthToolApi, LocalisedSlugsType, SpotlightSummary, SpotlightSummaryApi } from "./types";
export declare const formatCategory: (category: any) => any;
export declare const formatHealthTool: (healthTool: HealthToolApi) => HealthTool;
export declare const formatSpecialties: (specialties: HealthCareApi) => HealthCare;
export declare const formatHospital: (hospital: HealthCareApi) => HealthSearchDoctor;
export declare const getDiscoverDefaultHealthToolsApiPath: (locale: LocaleType, apiDomain?: string, params?: {
[key: string]: string | number;
}) => string;
export declare const getDiscoverDefaultSpotlightsApiPath: (locale: LocaleType, apiDomain?: string, params?: {
[key: string]: string | number;
}) => string;
export declare const getTogetherDefaultCommunitiesApiPath: (locale: LocaleType, apiDomain?: string, params?: {
[key: string]: string | number;
}) => string;
export declare const getTogetherUserPostsApiPath: (locale: LocaleType, isMarryBaby: boolean, apiDomain?: string, params?: {
[key: string]: string | number;
}) => string;
export declare const getTogetherMarryBabyCommunitiesApiPath: (locale: LocaleType, apiDomain?: string, params?: {
[key: string]: string | number;
}) => string;
export declare const getTogetherDefaultCommunitiesSubMenuApiPath: (locale: LocaleType, apiDomain?: string, params?: {
[key: string]: string | number;
}) => string;
export declare const getTogetherMarryBabyCommunitiesSubMenuApiPath: (locale: LocaleType, apiDomain?: string, params?: {
[key: string]: string | number;
}) => string;
export declare const getMarryBabyDefaultFooterApiPath: (locale: LocaleType, apiDomain?: string, params?: {
[key: string]: string | number;
}) => string;
export declare const getCareSearchUrl: ({ type, specialtySlug, locale, }: {
type: LocalisedSlugsType;
cityId?: string | number;
specialtySlug: string;
locale: LocaleType;
}) => string;
export declare const formatSpotlightsList: (spotlight: SpotlightSummaryApi) => SpotlightSummary;
export declare const checkAvailableSpotlight: (spotlight: SpotlightSummary) => boolean;
export declare const formatVideoItem: (data?: VideoItemTypeApi | null) => VideoItemType | null;
export declare function hexToHSL(H: string, returnObj?: boolean): any;
export declare function hexToHsb(hex: string, returnObj?: boolean): string | {
h: any;
s: number;
b: any;
};
export declare function hslToHex({ h, s, l }: any): string;
export declare function hexToRgb(hex: string, returnObj?: boolean): string | {
r: number;
g: number;
b: number;
};
export declare function rgbToHsb(r: any, g: any, b: any): number[];
export declare function hsbToRgb(h: any, s: any, b: any): number[];