import type { AuthorizationResponseData, PurchaseResponseData } from '../types/index.js'; type AuthResponseHandler = (data: AuthorizationResponseData) => void; type PurchaseResponseHandler = (data: PurchaseResponseData) => void; export interface ExtensionBridge { attach(): void; detach(): void; requestAuthorization(articleId: string, hostName: string): void; requestPurchase(params: { articleId: string; hostName: string; location: string; title: string; }): void; requestLogin(hostName: string): void; onAuthorizationResponse(handler: AuthResponseHandler): void; clearAuthorizationResponse(): void; onPurchaseResponse(handler: PurchaseResponseHandler): void; } export declare function createExtensionBridge(): ExtensionBridge; export {};