/**
 * Serialize a payload into a JSON string
 * @param message A payload to serialize
 * @returns A JSON serialized string
 */
export declare function serialize<T = string>(message: T): string;
/**
 * Extract a payload from a serialized string.
 * @param message A JSON string to unserialize
 * @returns
 */
export declare function unserialize<T = string>(message?: string | null): T | null | undefined;
export type MessageHandler<T = string> = (message?: T) => any;
//# sourceMappingURL=utils.d.ts.map