export interface ErrorWarning { /** * Will log a warning if true. */ warning?: string | true; error?: string | true; } export interface PropValueDeprecations { values?: Record; } export type Deprecations = { name: string; rename?: string; props?: Record; } & ErrorWarning; export default function withDeprecation(Component: Type, deprecations: Deprecations): Type;