import type { JSONSupport } from "../../../../core/JSONSupport.js";

export interface PostResultProperties extends Partial<Pick<PostResult, "success">> {
  /**
   * Returns data moments of the post.
   *
   * @since 5.0
   */
  moment?: (Date | number | string) | null;
}

/**
 * This contains information about the post result.
 *
 * @since 4.28
 */
export default class PostResult extends JSONSupport {
  constructor(properties?: PostResultProperties);
  /**
   * Returns data moments of the post.
   *
   * @since 5.0
   */
  get moment(): Date | null | undefined;
  set moment(value: (Date | number | string) | null | undefined);
  /**
   * Specifies if the post rest call was successful.
   *
   * @default false
   * @since 5.0
   */
  accessor success: boolean;
}