import { ICookieOptions } from './types';
import { prop } from './prop';
import { changes$ } from './events.rx';
import { ServerCookie } from './server';
import { toObject } from './util';

export { ICookieOptions, ServerCookie };
export * from './types';
export * from './server';

export const cookie = {
  prop,
  toObject,
  changes$,
  server: () => new ServerCookie(),
};
