import { J as Json, S as SdkModule } from '../../module-Bq-w9Ws5.js'; import 'graphql-request'; type StoreProductType = 'APP' | 'INTEGRATION' | 'TEMPLATE' | 'EXTENSION' | 'NODE' | 'WIDGET' | 'AGENT' | 'BUNDLE' | 'PRODUCT' | 'PROMPT' | 'WORKFLOW' | 'THEME'; interface StoreProduct { id: string; name: string; slug?: string | null; description?: string | null; price?: number | null; currency?: string | null; type: StoreProductType; status?: string | null; downloads?: number | null; publisher?: { id: string; name: string; isVerified?: boolean | null; } | null; } interface StoreSearchOptions { limit?: number; offset?: number; } interface CartItem { id: string; productId: string; productName: string; quantity: number; unitPrice: number; subtotal: number; variantId?: string | null; workspaceId?: string | null; } interface Cart { id: string; currency: string; subtotal: number; total: number; itemCount: number; isEmpty: boolean; items: CartItem[]; } interface CartError { code: string; field?: string | null; message: string; } interface CartPayload { cart?: Cart | null; errors?: CartError[] | null; } interface AddToCartInput { productId: string; quantity?: number; variantId?: string; workspaceId?: string; } type OrderStatus = 'PENDING' | 'PROCESSING' | 'COMPLETED' | 'CANCELLED' | 'REFUNDED' | 'FAILED'; interface Order { id: string; status: OrderStatus; total: number; currency: string; purchasedAt?: string | null; billingAccountId: string; createdAt: string; lineItems: Json; } interface InstalledProduct { id: string; productId: string; workspaceId: string; workspaceName?: string | null; status: string; installedAt: string; updatedAt: string; uninstalledAt?: string | null; version?: string | null; } interface InstalledProductsResult { items: InstalledProduct[]; total: number; hasMore: boolean; } interface InstallationFilterInput { productId?: string; workspaceId?: string; status?: string; } interface UninstallResult { id: string; productId: string; workspaceId: string; status: string; uninstalledAt?: string | null; updatedAt: string; } type LicenseSeatRole = 'ADMIN' | 'MEMBER' | 'VIEWER'; interface License { id: string; entitlementId: string; assigneeUserId: string; assigneeEmail?: string | null; role: LicenseSeatRole; assignedAt: string; revokedAt?: string | null; revocationReason?: string | null; } type PublisherTier = 'INDIVIDUAL' | 'ORGANIZATION' | 'ENTERPRISE'; type PublisherVerificationStatus = 'UNVERIFIED' | 'PENDING_VERIFICATION' | 'VERIFIED' | 'REJECTED' | 'SUSPENDED'; interface Publisher { id: string; name: string; legalName?: string | null; email: string; contactEmail?: string | null; websiteUrl?: string | null; bio?: string | null; logoUrl?: string | null; isVerified: boolean; verificationStatus: PublisherVerificationStatus; productCount: number; totalSales: number; totalEarnings: number; tier: PublisherTier; createdAt: string; updatedAt: string; } interface PublisherProductsResult { publisherId: string; productCount: number; products: StoreProduct[]; } interface CartApi { get(): Promise; add(input: AddToCartInput): Promise; remove(cartItemId: string): Promise; clear(): Promise; } interface InstalledListOptions { filter?: InstallationFilterInput; limit?: number; offset?: number; } interface InstalledApi { list(opts?: InstalledListOptions): Promise; uninstall(productId: string, workspaceId: string): Promise; } interface LicensesApi { list(entitlementId: string): Promise; } interface OrdersListOptions { limit?: number; offset?: number; status?: OrderStatus; } interface OrdersApi { list(opts?: OrdersListOptions): Promise; get(id: string): Promise; } interface PublisherApi { me(): Promise; myProducts(): Promise; } interface SearchApi { search(query: string, opts?: StoreSearchOptions): Promise; } interface StoreApi { search: SearchApi; cart: CartApi; orders: OrdersApi; installed: InstalledApi; licenses: LicensesApi; publisher: PublisherApi; } declare const storeModule: SdkModule; export { type AddToCartInput, type Cart, type CartApi, type CartError, type CartItem, type CartPayload, type InstallationFilterInput, type InstalledApi, type InstalledProduct, type InstalledProductsResult, type License, type LicenseSeatRole, type LicensesApi, type Order, type OrderStatus, type OrdersApi, type Publisher, type PublisherApi, type PublisherProductsResult, type PublisherTier, type PublisherVerificationStatus, type SearchApi, type StoreApi, type StoreProduct, type StoreProductType, type StoreSearchOptions, type UninstallResult, storeModule as default };