import Window from "../Window"; import type { WindowArgs } from "../Window"; import { JSONDef, Indicator, Close } from "../types"; export interface RSIArgs { period: number; index: number; window: WindowArgs; } export default class RSI extends Indicator { period: number; index: number; window: Window; constructor(period: number, index?: number, window?: Window); toString(): string; next(value: number): number | null; nextBar(bar: Close): number; reset(): void; toJSON(): JSONDef; static readonly key = "finance.tr.RSI"; static minBars({ period }: RSIArgs): number; static display({ period }: RSIArgs, value?: string): string; static from({ period, index, window }: RSIArgs): RSI; }