export declare function remotePromise(): { promise: Promise; resolve: (result: Result) => void; reject: (error: Error) => void; };