export type StackFrame = { prev: StackFrame | null; value: T; }; export type Stack = StackFrame | null; export type StackNonEmpty = StackFrame; export declare function pushStack = Stack>(head: P, value: T): { prev: P; value: T; }; export declare function popStack>(head: P): StackFrame | null; //# sourceMappingURL=stack.d.ts.map