import type { PropertyKey } from "../index"; declare function GetMethod( O: O, P: P, ): P extends keyof O // eslint-disable-next-line @typescript-eslint/ban-types ? NonNullable extends Function ? O[P] : never : ((...args: any) => any) | undefined; export = GetMethod;