/** * What Coinbase's payment page says about itself, as the client acts on it. * * The page posts one-directional events; nothing answers them. Their polling * reaches the transfer before ours does, so its verdict is read here rather * than waited on; everything else past `PAID` arrives as progress. */ export type CoinbaseOnrampEvent = /** The pay button is drawn and can be pressed. */ { kind: 'READY'; } /** The user paid and the transaction started. */ | { kind: 'PAID'; } /** Their polling saw the crypto sent. Terminal, and good. */ | { kind: 'SUCCEEDED'; } /** The user dismissed the payment sheet; the button is still there. */ | { kind: 'CANCELLED'; } /** Terminal for this page: the code is Coinbase's, and localized. */ | { kind: 'FAILED'; code: string; message?: string; } /** Named for the log, acted on by nothing. */ | { kind: 'PROGRESS'; name: string; }; /** * Reads one posted message, or `undefined` for anything this page did not * send — a WebView's message channel is shared with whatever the page loads. */ export declare function readOnrampEvent(raw: string): CoinbaseOnrampEvent | undefined; //# sourceMappingURL=coinbaseOnrampEvents.d.ts.map