UNPKG

@stacksjs/stx

Version:

A Bun plugin that allows for using Laravel Blade-like syntax.

9 lines (8 loc) 1.07 kB
import type { StxOptions } from './types'; declare const componentsCache: (...args: any[]) => unknown; export declare function renderComponent(componentPath: string, props: Record<string, any>, slotContent: string, componentsDir: string, parentContext: Record<string, any>, parentFilePath: string, options: StxOptions, processedComponents?: Set<string> | undefined, dependencies: Set<string>): Promise<string>; export declare function fileExists(filePath: string): Promise<boolean>; export declare function extractVariables(scriptContent: string, context: Record<string, any>, filePath: string): Promise<void>; export declare function resolveTemplatePath(templatePath: string, currentFilePath: string, options: StxOptions, dependencies?: Set<string>): Promise<string | null>; export declare function getSourceLineInfo(template: string, errorPosition?: number, errorPattern?: string): void; export declare function createDetailedErrorMessage(errorType: string, errorMessage: string, filePath: string, template: string, errorPosition?: number, errorPattern?: string): string;