import { ContextResolver } from "./context-resolver.js"; import { DualSignatureVerifier } from "./dual-signature-verifier.js"; import { Hooks } from "./hooks.js"; import { HttpClientTokenCacheInterface } from "./http-client.js"; import { Registration } from "./registration.js"; import type { ShopInterface, ShopRepositoryInterface } from "./repository.js"; import { WebCryptoHmacSigner } from "./signer.js"; /** * AppServer is the main class, this is where you start your app */ export declare class AppServer { cfg: Configuration; repository: ShopRepositoryInterface; httpClientTokenCache: HttpClientTokenCacheInterface; registration: Registration; contextResolver: ContextResolver; signer: WebCryptoHmacSigner; requestVerifier: DualSignatureVerifier; hooks: Hooks; constructor(cfg: Configuration, repository: ShopRepositoryInterface, httpClientTokenCache?: HttpClientTokenCacheInterface); } export interface Configuration { /** * Your app name */ appName: string; /** * Your app secret */ appSecret: string; /** * URL to authorize callback url */ authorizeCallbackUrl: string; /** * When true, registration requires both app and shop signatures during re-registration and confirmation. * Defaults to false. */ enforceDoubleSignature?: boolean; } //# sourceMappingURL=app.d.ts.map