UNPKG

@stacksjs/stx

Version:

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

21 lines (20 loc) 1.13 kB
import type { StxOptions } from './types'; export declare const partialsCache: Map<string, string>; export declare function processIncludes(template: string, context: Record<string, any>, filePath: string, options: StxOptions, dependencies: Set<string>): Promise<string>; declare const includeFilePath: unknown; declare const conditionFn: unknown; declare const includeFilePath: unknown; declare const conditionFn: unknown; declare const includeFilePath: unknown; declare const matchOffset: unknown; declare let pathArray: unknown; declare const varsFn: unknown; declare const includeFilePath: unknown; declare const processed: unknown; declare function resolvePath(includePath: string, partialsDir: string, filePath: string): string | null; declare let processedIncludes: (...args: any[]) => unknown; declare let matchOffset: unknown; declare const varsFn: unknown; declare const processedContent: unknown; export declare function processStackPushDirectives(template: string, stacks: Record<string, string[]>): string; export declare function processStackReplacements(template: string, stacks: Record<string, string[]>): string;