import { Result } from './result.js'; /** * Returns the result if it is successful. * **Throws** the result error if it is not. */ declare function unwrap(result: Promise>): Promise; declare function unwrap(result: Result): T; export { unwrap };