export declare function getResultError(fn: () => T): [result: T, error: undefined] | [result: undefined, error: E];