export interface IStack { push: (item: T) => void; pop: () => T; length: () => number; } export declare class Stack implements IStack { private readonly capacity; private readonly _store; constructor(capacity?: number); length(): number; push(item: T): void; pop(): T; }