import type * as types from '../types'; export declare const Rule: Readonly<{ allow: Readonly<{ readonly kind: "allow"; }>; redact: Readonly<{ readonly kind: "redact"; }>; }>; type Leaf = (typeof Rule)[keyof typeof Rule]; declare const policyType: unique symbol; type PolicyRef = { readonly kind: 'policy'; readonly fields: PolicyFields; /** Phantom invariant binding to the RN type reviewed by this policy. */ readonly [policyType]?: (value: T) => T; }; type ListRule = { readonly kind: 'list'; readonly element: FieldRule; }; type FieldRule = NonNullable extends readonly (infer E)[] ? ListRule | typeof Rule.redact : NonNullable extends (...args: never[]) => unknown ? typeof Rule.redact : NonNullable extends object ? PolicyRef> | typeof Rule.redact : Leaf; type AllKeys = T extends unknown ? keyof T : never; type FieldValue = T extends unknown ? K extends keyof T ? T[K] : never : never; type PolicyFields = { readonly [K in AllKeys & string]-?: FieldRule>; }; export declare const REQUEST_POLICIES: Readonly<{ readonly discoverReaders: PolicyRef>; readonly easyConnect: PolicyRef>; readonly connectReader: PolicyRef>; readonly createPaymentIntent: PolicyRef>; readonly createSetupIntent: PolicyRef; readonly collectPaymentMethod: PolicyRef; readonly getLocations: PolicyRef; readonly confirmPaymentIntent: PolicyRef; readonly processPaymentIntent: PolicyRef; readonly cancelPaymentIntent: PolicyRef; readonly setReaderDisplay: PolicyRef; readonly collectSetupIntentPaymentMethod: PolicyRef; readonly cancelSetupIntent: PolicyRef; readonly confirmSetupIntent: PolicyRef; readonly processSetupIntent: PolicyRef; readonly processRefund: PolicyRef>; readonly setReaderSettings: PolicyRef>; readonly collectInputs: PolicyRef; readonly collectData: PolicyRef; readonly supportsReadersOfType: PolicyRef; readonly setTapToPayUxConfiguration: PolicyRef; }>; /** Reviewed as "every non-null argument redacted". */ export declare const SCALAR_ARG_METHODS: readonly ["retrievePaymentIntent", "selectPaymentOption", "failPaymentMethodSelection", "failQrCodeDisplay", "retrieveSetupIntent", "setSimulatedCard", "setSimulatedOfflineMode", "setSimulatedCollectInputsResult", "print"]; /** * Serializes a traced SDK request using typed, total per-field policies. * * The RN-specific envelope avoids the server-side whole-field redaction applied * to the legacy `args` key while keeping positional argument structure intact. */ export declare function stringifyRedactedRequest(method: string, args: readonly unknown[]): string; type RedactionRule = FieldRule; /** Serializes a value with an explicit typed, default-deny redaction policy. */ export declare function stringifyWithTypedPolicySafely(value: NoInfer, root: RedactionRule): string; export declare const StripeErrorPolicy: PolicyRef; export declare const OfflineStatusPolicy: PolicyRef; type CollectInputResult = types.SelectionResult | types.SignatureResult | types.PhoneResult | types.EmailResult | types.TextResult | types.NumericResult; /** Every public function wrapped by Logger.traceSdkMethod. */ export declare const RESPONSE_POLICIES: Readonly<{ initialize: PolicyRef<{ reader?: types.Reader.Type; }>; discoverReaders: PolicyRef>; easyConnect: PolicyRef<{ reader?: types.Reader.Type; }>; cancelEasyConnect: PolicyRef>; cancelDiscovering: PolicyRef>; connectReader: PolicyRef<{ reader?: types.Reader.Type; }>; disconnectReader: PolicyRef>; rebootReader: PolicyRef>; createPaymentIntent: PolicyRef<{ paymentIntent?: types.PaymentIntent.Type; }>; createSetupIntent: PolicyRef<{ setupIntent?: types.SetupIntent.Type; }>; collectPaymentMethod: PolicyRef<{ paymentIntent?: types.PaymentIntent.Type; }>; retrievePaymentIntent: PolicyRef<{ paymentIntent?: types.PaymentIntent.Type; }>; getLocations: PolicyRef<{ locations?: types.Location[]; hasMore?: boolean; }>; confirmPaymentIntent: PolicyRef<{ paymentIntent?: types.PaymentIntent.Type; }>; processPaymentIntent: PolicyRef<{ paymentIntent?: types.PaymentIntent.Type; }>; cancelPaymentIntent: PolicyRef<{ paymentIntent?: types.PaymentIntent.Type; }>; selectPaymentOption: PolicyRef>; failPaymentMethodSelection: PolicyRef>; confirmQrCodeDisplayed: PolicyRef>; failQrCodeDisplay: PolicyRef>; installAvailableUpdate: PolicyRef>; setReaderDisplay: PolicyRef>; cancelInstallingUpdate: PolicyRef>; retrieveSetupIntent: PolicyRef<{ setupIntent?: types.SetupIntent.Type; }>; collectSetupIntentPaymentMethod: PolicyRef<{ setupIntent?: types.SetupIntent.Type; }>; clearReaderDisplay: PolicyRef>; cancelSetupIntent: PolicyRef<{ setupIntent?: types.SetupIntent.Type; }>; confirmSetupIntent: PolicyRef<{ setupIntent?: types.SetupIntent.Type; }>; processSetupIntent: PolicyRef<{ setupIntent?: types.SetupIntent.Type; }>; setSimulatedCard: PolicyRef>; setSimulatedOfflineMode: PolicyRef>; setSimulatedCollectInputsResult: PolicyRef>; processRefund: PolicyRef<{ refund?: types.Refund.Props; }>; clearCachedCredentials: PolicyRef>; cancelCollectPaymentMethod: PolicyRef>; cancelProcessRefund: PolicyRef>; cancelCollectSetupIntent: PolicyRef>; cancelConfirmPaymentIntent: PolicyRef>; cancelProcessPaymentIntent: PolicyRef>; cancelConfirmSetupIntent: PolicyRef>; cancelProcessSetupIntent: PolicyRef>; getOfflineStatus: PolicyRef; getPaymentStatus: Readonly<{ readonly kind: "allow"; }>; getConnectionStatus: Readonly<{ readonly kind: "allow"; }>; getConnectedReader: PolicyRef; getReaderSettings: PolicyRef; setReaderSettings: PolicyRef; collectInputs: PolicyRef<{ collectInputResults?: CollectInputResult[]; }>; cancelCollectInputs: PolicyRef>; collectData: PolicyRef<{ collectedData?: types.CollectedData; }>; cancelCollectData: PolicyRef>; print: PolicyRef>; cancelReaderReconnection: PolicyRef>; supportsReadersOfType: PolicyRef<{ readerSupportResult?: boolean; }>; setTapToPayUxConfiguration: PolicyRef>; getNativeSdkVersion: Readonly<{ readonly kind: "allow"; }>; }>; /** Serializes an SDK response with a method-specific, default-deny policy. */ export declare function stringifyRedactedResponse(method: string, response: unknown): string; /** Serializes a normalized SDK error with the shared StripeError policy. */ export declare function stringifyRedactedInternalError(error: unknown): string; export {};