/** * Generates a unique id of provided length. */ export declare const generateId: (val?: number) => string; /** * Type cast an argument. If not type is provided it defaults to any * Provides A sneaky way to step around tricky TypeScript bugs 😅 * * @param target */ export declare const Cast: (target: any) => GNewType; /** * Removes all undefined values from an object. Neither Firestore nor the RealtimeDB allow `undefined` as a value. * * @param data The object to clean */ export declare const removeUndefined: (data: T) => T; /** * Log an error but not in the test environment */ export declare function logError(message: string, error?: Error): void; export declare function logError(error: Error): void; /** * Log an error but not in the test environment. */ export declare const simpleError: (message: string) => Error; /** * For some reason process.env.NODE_ENV becomes undefined when importing a module whilst running jest tests. * This uses the injected Jest Environment to determine whether a test is currently running. */ export declare const isTestEnv: () => boolean; //# sourceMappingURL=helpers.d.ts.map