1 | import { Collection } from "../Collection";
|
2 | export declare class Stack<T> extends Collection<T> {
|
3 | private linkList;
|
4 | constructor();
|
5 | push(node: T): import("../linklist/LinkNode").LinkNode<T>;
|
6 | pop(): T;
|
7 | peek(): T;
|
8 | isEmpty(): boolean;
|
9 | toString(): string;
|
10 | protected __iterate(fn: (item: T, index: number) => void): void;
|
11 | toArray(): T[];
|
12 | }
|
13 | export default Stack;
|