/** * Seller Dashboard component utilities * * Provides rendering utilities for the seller dashboard including: * - Listing management summary * - Sales analytics * - Active grants overview * - Earnings display * - Trust score visualization */ import type { SellerDashboard, TrustScore, Listing } from '../types'; /** Seller dashboard render props */ export interface SellerDashboardProps { dashboard: SellerDashboard; onCreateListing?: () => void; onViewListing?: (listing: Listing) => void; onWithdraw?: () => void; } /** Format earnings for display */ export declare function formatEarnings(amount: number, currency?: string): string; /** Format a trust score for display */ export declare function formatTrustScore(score: TrustScore): { label: string; percentage: number; color: string; tier: string; }; /** Render seller dashboard as HTML */ export declare function renderSellerDashboardHTML(props: SellerDashboardProps): string; /** CSS styles for seller dashboard */ export declare const sellerDashboardStyles = "\n.seller-dashboard {\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;\n color: #e0e0e0;\n background: #0a0a1a;\n padding: 24px;\n}\n\n.dashboard-header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-bottom: 24px;\n}\n\n.dashboard-stats {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));\n gap: 16px;\n margin-bottom: 24px;\n}\n\n.stat-card {\n background: #1a1a2e;\n border: 1px solid #2a2a3a;\n border-radius: 8px;\n padding: 16px;\n text-align: center;\n}\n\n.stat-value {\n font-size: 1.5rem;\n font-weight: 700;\n color: #00ff88;\n}\n\n.stat-label {\n font-size: 0.85rem;\n color: #808080;\n margin-top: 4px;\n}\n\n.trust-score-section {\n background: #1a1a2e;\n border: 1px solid #2a2a3a;\n border-radius: 8px;\n padding: 16px;\n margin-bottom: 24px;\n}\n\n.trust-score-bar {\n height: 8px;\n background: #2a2a3a;\n border-radius: 4px;\n overflow: hidden;\n margin: 8px 0;\n}\n\n.trust-score-fill {\n height: 100%;\n border-radius: 4px;\n transition: width 0.3s ease;\n}\n\n.trust-score-label {\n display: flex;\n gap: 12px;\n align-items: center;\n font-size: 0.85rem;\n}\n\n.trust-tier { font-weight: 600; }\n.trust-percentage { color: #a0a0a0; }\n.featured-badge {\n background: #ffd700;\n color: #000;\n padding: 2px 8px;\n border-radius: 4px;\n font-size: 0.75rem;\n font-weight: 600;\n}\n.escrow-badge {\n background: #cc6600;\n color: #fff;\n padding: 2px 8px;\n border-radius: 4px;\n font-size: 0.75rem;\n}\n\n.listing-row, .purchase-row {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 12px;\n border-bottom: 1px solid #2a2a3a;\n}\n\n.listing-row-status.active { color: #00ff88; }\n.listing-row-status.inactive { color: #cc0000; }\n"; //# sourceMappingURL=SellerDashboard.d.ts.map