import { AuthorModel, FormItemModel, HeaderModel, ImageModel } from "./"
import { TitleSectionModel } from "./pageSections"

export interface Params {
  [key: string]: string | undefined
}

export interface RequestModel<T, TT> {
  pathParams?: T
  searchParams?: TT,
  
}

export interface ResponseModel {}

export interface AddressPageSectionModel extends PageSectionModel {
  firstName: FormItemModel,
  lastName: FormItemModel,
  address: FormItemModel,
  address2: FormItemModel,
  country: FormItemModel,
  state: FormItemModel,
  city: FormItemModel,
  zip: FormItemModel
}

export interface PageModel {
  header: HeaderModel,
  titleSection?: TitleSectionModel
}

export interface PageSectionModel {
  title?: string
  text?: string
}

export interface PersonModel {
  id: string,
  image?: ImageModel
}

export interface PostItemModel {
  id: string,
  slug: string,
  image: ImageModel,
  badges: string [],
  title: string,
  shortText?: string,
  text?: string,
  author: AuthorModel,
  created: string,
  tags: string []
}
