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

import(graphics)
importFrom("stats", "quantile", "ts", "tsp", "start", "na.omit")
importFrom("grDevices", "dev.new")
importFrom("utils", "capture.output")

export(unicor, crscor, period, fftper, pdfunc, klinfo, boxcox, lsqr, armachar,
 marspc, arfit, marfit, marlsq, lsar, lsar.chgpt, tsmooth, armafit, armafit2,
 polreg, trend, season, tvvar, tvar, tvspc, ngsmth, simssm, ngsim, pfilter,
 pfilterNL)

# for TSSS.OMP
export(print.tvvar, plot.tvvar, plot.pfilter)

S3method(print, armafit)
S3method(print, armafit2)
S3method(print, boxcox)
S3method(print, klinfo)
S3method(print, lsar)
S3method(print, lsqr)
S3method(print, maryule)
S3method(print, marlsq)
S3method(print, ngsmth)
S3method(print, season)
S3method(print, smooth)
S3method(print, trend)
S3method(print, tvvar)

S3method(plot, arfit)
S3method(plot, arma)
S3method(plot, boxcox)
S3method(plot, chgpt)
S3method(plot, crscor)
S3method(plot, lsar)
S3method(plot, lsqr)
S3method(plot, marspc)
S3method(plot, ngsmth)
S3method(plot, pdfunc)
S3method(plot, pfilter)
S3method(plot, polreg)
S3method(plot, season)
S3method(plot, simulate)
S3method(plot, smooth)
S3method(plot, spg)
S3method(plot, trend)
S3method(plot, tvspc) 
S3method(plot, tvvar)
S3method(plot, unicor)
