import type { AppServer } from "./app.js"; import type { ShopInterface } from "./repository.js"; export declare class Registration { private app; constructor(app: AppServer); /** * This method checks the request for the handshake with the Shopware Shop. * if it's valid a Shop will be created, and a proof will be responded with a confirmation url. * then the Shop will call the confirmation url, and this should be handled by the authorizeCallback method to finish the handshake. */ authorize(req: Request): Promise; /** * This method is called by the Shopware Shop to confirm the handshake. * It will update the shop with the given oauth2 credentials. */ authorizeCallback(req: Request): Promise; /** * This method should be called by Shopware Shop to set the shop active. * * * * */ activate(req: Request): Promise; /** * This method should be called by Shopware when the app was installed. * * * * */ install(req: Request): Promise; /** * This method should be called by Shopware Shop to set the shop in-active. * * * * */ deactivate(req: Request): Promise; /** * This method should be called by Shopware when the app was updated. * * * * */ update(req: Request): Promise; /** * This method should be called by Shopware Shop to delete the app. * * * * */ delete(req: Request): Promise; /** * @deprecated tag:v6.0.0 - Will be removed. Double signature verification will always be enforced. */ private setVerifiedWithDoubleSignature; } export declare function randomString(length?: number): string; export declare class ShopAuthorizeEvent { request: Request; shop: Shop; private reject; constructor(request: Request, shop: Shop); rejectRegistration(reason: string): void; get reason(): string | null; } export declare class AppInstallEvent { request: Request; shop: Shop; appVersion: string | null; constructor(request: Request, shop: Shop, appVersion?: string | null); } export declare class AppActivateEvent { request: Request; shop: Shop; constructor(request: Request, shop: Shop); } export declare class AppDeactivateEvent { request: Request; shop: Shop; constructor(request: Request, shop: Shop); } export declare class AppUpdateEvent { request: Request; shop: Shop; appVersion: string | null; constructor(request: Request, shop: Shop, appVersion?: string | null); } export declare class AppUninstallEvent { request: Request; shop: Shop; keepUserData: boolean | null; constructor(request: Request, shop: Shop, keepUserData?: boolean | null); } export declare class BeforeRegistrationEvent { request: Request; shopId: string; shopUrl: string; private cancellationReason; constructor(request: Request, shopId: string, shopUrl: string); rejectRegistration(reason: string): void; get reason(): string | null; } //# sourceMappingURL=registration.d.ts.map