paivana

HTTP paywall reverse proxy
Log | Files | Refs | Submodules | README | LICENSE

global.d.ts (1992B)


      1 /*
      2  This file is part of GNU Taler
      3  (C) 2026 Taler Systems S.A.
      4 
      5  GNU Taler is free software; you can redistribute it and/or modify it under the
      6  terms of the GNU Affero General Public License as published by the Free Software
      7  Foundation; either version 3, or (at your option) any later version.
      8 
      9  GNU Taler is distributed in the hope that it will be useful, but WITHOUT ANY
     10  WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
     11  A PARTICULAR PURPOSE.  See the GNU Affero General Public License for more details.
     12 
     13  You should have received a copy of the GNU Affero General Public License along with
     14  GNU Anastasis; see the file COPYING.  If not, see <http://www.gnu.org/licenses/>
     15  */
     16 
     17 declare const QR_WIDTH: number;
     18 declare const QR_HEIGHT: number;
     19 declare const I18N_PAYMENT_CONFIRMED_LOADING: string;
     20 declare const I18N_PAYMENT_CONFIRMED_PROBLEM: string;
     21 declare const I18N_PAYMENT_CONFIRMED_RETRYING: string;
     22 declare const I18N_REDEMPTION_TIMEOUT: string;
     23 declare const I18N_PAYMENT_CONFIRMED_NO_ORDER: string;
     24 declare const I18N_OFFER_EXPIRED: string;
     25 declare const I18N_PENDING_ORDER: string;
     26 declare const I18N_ACCESS_UNAVAILABLE: string;
     27 declare const I18N_PAYMENT_STATUS_ERROR: string;
     28 declare const MERCHANT_BACKEND: string;
     29 declare const MERCHANT_TEMPLATE_ID: string;
     30 declare const MAX_PICKUP_DELAY: number;
     31 declare const TEMPLATE_SUMMARY: string;
     32 declare const TEMPLATE_CHOICES: string;
     33 declare const POLL_WAIT_MS: number;
     34 declare const REDEMPTION_RETRY_MS: number;
     35 
     36 /** qrcode-generator (qrcode-generator.js), as far as paywall.js uses it. */
     37 declare const qrcode: {
     38   (typeNumber: number, errorCorrectionLevel: "L" | "M" | "Q" | "H"): {
     39     addData(data: string, mode?: "Numeric" | "Alphanumeric" | "Byte" | "Kanji"): void;
     40     make(): void;
     41     createSvgTag(opts: { cellSize?: number; margin?: number; scalable?: boolean }): string;
     42   };
     43   stringToBytes(s: string): number[];
     44   stringToBytesFuncs: { [encoding: string]: (s: string) => number[] };
     45 };