import { Option } from './core'; export interface Stack { current: Option; size: number; push(item: T): void; pop(): Option; nth(from: number): Option; isEmpty(): boolean; toArray(): T[]; }