This might not be a perfect fix but it takes care of the compile-time errors for my angular application.
node_modules/@pnotify/core/Stack.d.ts you will have to modify line 1 to import { Notice } from './';
replace line 193 to 208 with the code below
swap( one: Notice, theOther: Notice, immediate: boolean, waitAfter: boolean ): Promise<unknown>;
replace line 220 with the following
fire(event: string, detail: {}): void;
In @pnotify/core/index.d.ts file replace line 250 with open(immediate?: boolean): Promise<unknown>; and replace line 261 to 265 with close( immediate?: boolean, timerHide?: boolean, waitAfterward?: boolean ): Promise<unknown>;
This fix worked for "pnotify": "^5.2.0", hopefully the next update will fix these error. Ummmm you might have to redo this again if you reinstall the same package.