import type { NotUndefined } from "../typings"; interface Options { componentName: string; propName: string; errorHandler?: () => string; notNullable?: boolean; } declare type R = T2 extends undefined ? T1 | undefined : NotUndefined; declare const useConstantProp: (initialValue: T1, defaultValue: T2, options: Options) => R; export default useConstantProp;