import type { StoreAppCatalogResponse, StoreAppDetail } from '@xopcai/gateway-contract'; import type { Config } from '../config/schema.js'; import type { LocalApp } from './types.js'; export interface StoreAppListParams { q?: string; category?: string; sort?: 'downloads' | 'newest'; page?: number; pageSize?: number; } export interface ResolvedStoreAppDownload { packageName: string; version: string; sha256: string; verified: boolean; source: 'store' | 'local-catalog'; displayName: string; description: string; buffer: Buffer; } export declare function listStoreAppCatalog(config: Config, installedApps: readonly LocalApp[], params?: StoreAppListParams): Promise; export declare function getStoreAppCatalogDetail(config: Config, installedApps: readonly LocalApp[], packageName: string): Promise; export declare function downloadOrPackStoreApp(config: Config, packageName: string, version?: string): Promise;