export interface Stack { head: StackItem | undefined; length: number; } export interface StackItem { value: T; previous: StackItem | undefined; } export declare function createStack(): Stack; export declare function pushStackItem(value: T, stack: Stack): Stack; export declare function getStackItems(stack: Stack): Array;