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

/** @since 5.0 */
export interface DirectionsStringProperties extends Partial<Pick<DirectionsString, "text" | "type">> {}

/**
 * An event string object with name and type.
 *
 * @since 5.0
 */
export default class DirectionsString extends JSONSupport {
  /** that may be passed into the constructor. */
  constructor(properties?: DirectionsStringProperties);
  /**
   * The direction text.
   *
   * @since 5.0
   */
  accessor text: string;
  /**
   * The type of event.
   *
   * @since 5.0
   */
  type: DirectionsStringType;
}