UNPKG

customerio-node

Version:

A node client for the Customer.io event API. http://customer.io

16 lines (15 loc) 663 B
/// <reference types="node" /> import { IncomingMessage } from 'http'; export declare const isEmpty: (value: unknown) => boolean; export declare const cleanEmail: (email: string) => string; export declare const isIdentifierType: (value: unknown) => boolean; export declare class CustomerIORequestError extends Error { statusCode: number; response: IncomingMessage; body: string; static composeMessage(json: Record<string, any> | null): string; constructor(json: Record<string, any> | null, statusCode: number, response: IncomingMessage, body: string); } export declare class MissingParamError extends Error { constructor(param: string); }