import {Id} from "dbmage" import {mockStripePopups} from "./mock-stripe-popups.js" export type StripePopups = ReturnType export namespace Popups { export interface SpecParams { popupReturnUrl: string generateId: () => Id } export interface SecretMockCommand { secretMockCommand: true commandId: number type: string } export interface SecretMockResponse { secretMockCommand: true commandId: number } export interface Parameters { url: string popupId: string width?: number height?: number handleSecretMockCommand?(command: SecretMockCommand): Promise, } export interface Result { popupId: string details?: xDetails } } export namespace Querystrings { export interface Connect { return_url: string refresh_url: string } export interface Checkout { success_url: string cancel_url: string } }