/** * Fills in the fields {@link PurchasesError} declares but the platform bridges * leave nested. * * Hybrid SDKs should call this on every error rejected by the native module, * then rethrow the returned value. * * The error is mutated in place and returned. Copying it into a new object * would discard its prototype and stack, which would break `instanceof Error` * for consumers and `instanceof CapacitorException` on Capacitor. * * Values the bridge did not send fall back to the same defaults the native * layer already applies, so the result always satisfies {@link PurchasesError}. * * Anything that is not an object, or that carries no error code, is returned * untouched. * * @public */ export declare function normalizePurchasesError(error: unknown): unknown;