import { Timestamp } from "firebase/firestore"; import { Address, Products, ProviderUserPermissions, StaffUserPermissions, UserData } from "../typeDefinitions"; import * as geoHash from "ngeohash"; export declare const getProviderId: () => Promise; export declare const getRandomNumber: (min: number | undefined, max: number) => number; export declare const getUniqueId: (object: object) => number; export declare const capitalise: (s?: string) => string; export declare const capitaliseWords: (s?: string) => string; export declare const snakeCase: (s?: string) => string; export declare const validateEmail: (email: string) => RegExpMatchArray | null; export declare const getAccess: (user: UserData, ...perms: (keyof StaffUserPermissions | keyof ProviderUserPermissions)[]) => any; export declare const dateToString: (date: Date) => string; export declare const getPlacementDateArray: (start: string, end: string) => string[]; export declare const reformatDate: (date: Date | string) => string | undefined; export declare const convertDate: (date?: string | Date, output?: "dbstring" | "date" | "visual") => string | Date | undefined; export declare const getDateDiff: (start: Date, end: Date) => number; export declare const reformatDateTime: (timestamp: string | Timestamp) => string | null; export declare function stringToDate(date: string): Date; export declare const editNestedObject: (loc: (string | number)[], data: any[] | { [key: string | number]: unknown; }, value: any, objectId?: boolean, append?: boolean) => any[] | { [key: string]: unknown; [key: number]: unknown; } | undefined; export declare const getItemInNestedObject: (path: string[], object: any) => any; export declare const camelCaseToNormal: (string?: string) => string; export declare const camelCase: (string?: string) => string; export declare const isJson: (item: any) => boolean; export declare const sortByReverseStringLength: (array: string[]) => string[]; export declare const pathToArr: (path: any[] | any) => any[]; export declare const arraysEqual: (a: any[], b: any[]) => boolean; export declare const objectsEqual: (x: object, y: object) => boolean; export declare const arrayUniqueValues: (array: unknown[]) => unknown[]; export declare const flattenObject: (obj: any) => {}; export declare const getGeoHash: (data: Partial
) => Promise; export declare const decodeGeoHash: (g: string) => geoHash.GeographicPoint | undefined; export declare const randomPassword: () => string; export declare const arrayEquals: (a: unknown, b: unknown) => boolean; export declare const average: (arr: number[]) => number; export declare const readingTime: (text: string) => string | undefined; export declare function getMaximumStudentsFromListingCohorts(cohorts?: { [key: string]: { startDate?: string; studentPlacements?: string[]; }; }): number; export declare const getImageColorInstituteForEmail: (product: Products, oId: string, cohort?: string, schoolId?: string) => Promise<{ image?: string; color?: string; name?: string; email?: string; package?: string; }>; export declare const quoteAlgoliaFilterIfNeeded: (v: any) => any;