/** * Patterns Resolver Service * * Minimal service for resolving pattern references in public pages. * This is a core service that provides only the functionality needed * for public page rendering without RLS (for anonymous access). * * NOTE: The full PatternsService (CRUD, list, etc.) is in core/entities/patterns. * This service specifically handles anonymous pattern resolution at render time, * while PatternsService handles authenticated operations with RLS. * * @module core/lib/blocks/patterns-resolver.service */ import type { Pattern } from '../../types/pattern-reference'; /** * Core service for pattern resolution * * Provides only the methods needed for public page rendering. * Uses direct queries without RLS since public pages are anonymous. */ export declare class PatternsResolverService { /** * Get multiple patterns by IDs (batch fetch) * * Used for resolving pattern references in public pages. * Only fetches PUBLISHED patterns (drafts are not shown publicly). * * @param ids - Array of pattern IDs * @returns Array of published patterns * * @example * const patternRefs = [{ ref: 'uuid-1' }, { ref: 'uuid-2' }] * const patterns = await PatternsResolverService.getByIds( * patternRefs.map(p => p.ref) * ) */ static getByIds(ids: string[]): Promise; } //# sourceMappingURL=patterns-resolver.service.d.ts.map