useDynLib(seg, .registration = TRUE, .fixes = "C_")

importFrom(sf, st_as_sf)
importFrom(stats, update)
importFrom(graphics, plot, points)

export(dissim, isp, localenv, spseg, spatseg, deseg, conprof)
export(SegLocal, SegSpatial, SegDecomp)
export(seg, whiteseg)

S3method(print, SegLocal)
S3method(summary, SegLocal)
S3method(update, SegLocal)
S3method(plot, SegLocal)
S3method(points, SegLocal)
S3method(st_as_sf, SegLocal)

S3method(print, SegSpatial)
S3method(plot, SegSpatial)
S3method(as.list, SegSpatial)
S3method(st_as_sf, SegSpatial)

S3method(print, SegDecomp)
S3method(as.vector, SegDecomp)
S3method(st_as_sf, SegDecomp)
