import { z as r } from "zod";
const a = r.intersection(
  r.object({
    imageUrl: r.string()
  }),
  r.object({
    as: r.string(),
    caption: r.string(),
    height: r.number(),
    width: r.number(),
    smallImageUrl: r.string()
  }).partial()
);
class i extends Error {
  toJSON() {
    return this.message;
  }
}
export {
  a as RawImageCodec,
  i as RawImageTypeInvalidError
};
