import { AlumniConversation, EmailTemplateConfig, FlagCodes, InstituteData, StudentPlacementData, UserData, WorkflowStage, YearScoreData } from "./typeDefinitions"; import { Descendant } from "slate"; type PlacementFlagCodeParams = { placement: StudentPlacementData; studentData: UserData; workflow: WorkflowStage[]; institute: InstituteData; user: UserData; }; /** * Description of function * */ type PlaceFlagCodeReturn = Promise; export declare const getPlacementFlagCodes: ({ placement, studentData, workflow, institute, user }: PlacementFlagCodeParams) => PlaceFlagCodeReturn; export declare function objectsEqualNew(a: any, b: any): boolean; export declare const getBookedPlacementDates: (placements?: { [key: string]: StudentPlacementData; }, currentPlacementData?: StudentPlacementData) => Date[] | undefined; export declare const getMostRecentAlumniMessage: (conversation: AlumniConversation) => { sentBy: "alumni" | "student"; sentAt: string; message: string; delivered: "blocked" | "pending" | true; id: string; } | null; export declare function buildEmailHTML({ preheader, title, salutation, body, primaryColor, secondaryBody, primaryButton, secondaryButton, primaryImage, designatedStaffEmail, organisationName, params, data }: { preheader: string; title: string; salutation?: string; body: string | Descendant[]; primaryColor?: string; secondaryBody?: string; primaryButton?: { title: string; url: string; }; secondaryButton?: { title: string; url: string; }; primaryImage?: string; designatedStaffEmail?: string; organisationName?: string; params?: EmailTemplateConfig; data?: { [key: string]: string | undefined; }; }): string; export declare const getWeightsForOES: (years: number) => { weights: number[]; sum: number; }; export declare const calculateYearScore: (inputData: YearScoreData) => number; export declare const calculateOverallEngagementScore: (inputData: YearScoreData[]) => number; export declare const generateAcademicYears: (number?: number) => { startDate: string; endDate: string; }[]; export declare function getMonthsBetweenDates({ startDate, endDate }: { startDate: string; endDate: string; }): string[]; export declare function getMonthIndexForDate(date: string, months: string[]): number; export declare function darkenHex(hex: string, amount?: number): string; export {};