import type { InitParams, DiscoverReadersParams, DiscoverReadersResultType, CancelDiscoveringResultType, DisconnectReaderResultType, RebootReaderResultType, Reader, CreatePaymentIntentParams, CollectSetupIntentPaymentMethodParams, PaymentIntentResultType, Cart, SetupIntentResultType, CreateSetupIntentParams, ClearReaderDisplayResultType, GetLocationsParams, GetLocationsResultType, RefundParams, ProcessRefundResultType, SetConnectionTokenParams, ConnectReaderResultType, CollectPaymentMethodParams, OfflineStatus, ICollectInputsParameters, ICollectInputsResults, PaymentStatus, ConnectionStatus, GetConnectedReaderType, ConfirmPaymentMethodParams, ProcessPaymentIntentParams, ConfirmSetupIntentMethodParams, ProcessSetupIntentParams, CancelSetupIntentMethodParams, CancelPaymentMethodParams, CollectDataParams, CollectDataResultType, TapToPayUxConfiguration, ConnectReaderParams, EasyConnectParams, PrintContent } from './types'; import type { StripeError } from './types/StripeError'; type InitializeResultNativeType = Promise<{ error?: StripeError; reader?: Reader.Type; }>; interface InternalInitParams extends InitParams { reactNativeVersion: string; /** @internal */ useAppsOnDevicesConnectionTokenProvider: boolean; } export interface StripeTerminalSdkType { initialize(params: InternalInitParams): InitializeResultNativeType; setConnectionToken(params: SetConnectionTokenParams): Promise; discoverReaders(params: DiscoverReadersParams): Promise; cancelDiscovering(): Promise; easyConnect(param: EasyConnectParams): Promise; cancelEasyConnect(): Promise<{ error?: StripeError; }>; connectReader(params: ConnectReaderParams): Promise; disconnectReader(): Promise; rebootReader(): Promise; createPaymentIntent(params: CreatePaymentIntentParams): Promise; collectPaymentMethod(params: CollectPaymentMethodParams): Promise; retrievePaymentIntent(clientSecret: string): Promise; confirmPaymentIntent(params: ConfirmPaymentMethodParams): Promise; processPaymentIntent(params: ProcessPaymentIntentParams): Promise; createSetupIntent(params: CreateSetupIntentParams): Promise; cancelPaymentIntent(params: CancelPaymentMethodParams): Promise; selectPaymentOption(paymentOptionType: string): Promise; failPaymentMethodSelection(error?: string): Promise; confirmQrCodeDisplayed(): Promise; failQrCodeDisplay(error?: string): Promise; collectSetupIntentPaymentMethod(params: CollectSetupIntentPaymentMethodParams): Promise; installAvailableUpdate(): Promise; cancelInstallingUpdate(): Promise<{ error?: StripeError; }>; setReaderDisplay(cart: Cart): Promise<{ error?: StripeError; }>; clearReaderDisplay(): Promise; retrieveSetupIntent(clientSecret: string): Promise; cancelSetupIntent(params: CancelSetupIntentMethodParams): Promise; getLocations(params: GetLocationsParams): Promise; confirmSetupIntent(params: ConfirmSetupIntentMethodParams): Promise; processSetupIntent(params: ProcessSetupIntentParams): Promise; processRefund(params: RefundParams): Promise; clearCachedCredentials(): Promise<{ error?: StripeError; }>; cancelCollectPaymentMethod(): Promise<{ error?: StripeError; }>; cancelCollectSetupIntent(): Promise<{ error?: StripeError; }>; cancelConfirmPaymentIntent(): Promise<{ error?: StripeError; }>; cancelProcessPaymentIntent(): Promise<{ error?: StripeError; }>; cancelConfirmSetupIntent(): Promise<{ error?: StripeError; }>; cancelProcessSetupIntent(): Promise<{ error?: StripeError; }>; cancelProcessRefund(): Promise<{ error?: StripeError; }>; setSimulatedCard(cardNumber: string): Promise<{ error?: StripeError; }>; setSimulatedOfflineMode(simulatedOffline: boolean): Promise<{ error?: StripeError; }>; setSimulatedCollectInputsResult(simulatedCollectInputsBehavior: string): Promise<{ error?: StripeError; }>; getOfflineStatus(): Promise; getPaymentStatus(): Promise; getConnectionStatus(): Promise; getConnectedReader(): Promise<{ reader: GetConnectedReaderType; }>; getReaderSettings(): Promise; setReaderSettings(params: Reader.ReaderSettingsParameters): Promise; collectInputs(params: ICollectInputsParameters): Promise; cancelCollectInputs(): Promise<{ error?: StripeError; }>; collectData(params: CollectDataParams): Promise; cancelCollectData(): Promise<{ error?: StripeError; }>; /** * Prints the specified content to the connected reader's printer, if available. * @param content The content to print. Must be an image (JPEG/PNG) encoded as a base64 string or 'data:' URI scheme. * @returns A promise that resolves to an empty object if the print succeeds, or an object containing a `StripeError` if the print fails. */ print(content: PrintContent): Promise<{ error?: StripeError; }>; cancelReaderReconnection(): Promise<{ error?: StripeError; }>; supportsReadersOfType(params: Reader.ReaderSupportParams): Promise; setTapToPayUxConfiguration(params: TapToPayUxConfiguration): Promise<{ error?: StripeError; }>; getNativeSdkVersion(): Promise; } declare const _default: StripeTerminalSdkType; export default _default;