export declare function getResult(fn: () => T): T | undefined;