declare global { interface PluginRegistry { GooglePay?: GooglePayPlugin; IsReadyToPay?: IsReadyToPay; } } export interface GooglePayPlugin { echo(options: { value: string; }): Promise<{ value: string; }>; } export interface IsReadyToPay { isReadyToPay(): Promise; }