export interface ErrorChainedMethods { (target: Object, propertyKey?: string | symbol | undefined, descriptor?: TypedPropertyDescriptor | number): any; Error(msg: string): this; } export type ErrorChainedDecorator any> = (...args: Parameters) => ErrorChainedMethods; export declare function withErrorMsg any>(errorKey: string, originalDecorator: Decorator): ErrorChainedDecorator;