UNPKG

@stacksjs/stx

Version:

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

31 lines (30 loc) 1.58 kB
import type { StxOptions } from './types'; declare function genId(): string; export declare function processForms(template: string, context: Record<string, any>, _filePath: string, _options: StxOptions): string; export declare function processBasicFormDirectives(template: string, context: Record<string, any>): string; export declare function processFormInputDirectives(template: string, context: Record<string, any>): string; declare const name: unknown; declare const attrs: unknown; declare const type: unknown; declare const existingClass: unknown; declare const attrs: unknown; declare const hasError: unknown; declare const existingClass: unknown; declare const attrs: unknown; declare const hasError: unknown; declare const existingClass: unknown; declare const isSelected: oldValue; declare const attrs: unknown; declare const isChecked: oldValues; declare const existingClass: unknown; declare const attrs: unknown; declare const isChecked: unknown; declare const className: unknown; declare const attrs: unknown; declare const className: unknown; export declare function processErrorDirective(template: string, context: Record<string, any>): string; declare function hasFieldError(field: string, context: Record<string, any>): boolean; declare function getErrorMessage(field: string, context: Record<string, any>): string; declare function getOldValue(field: string, context: Record<string, any>): any; declare function parseAttributes(attributesStr: string): string; export declare function processFormDirectives(template: string, context: Record<string, any>): string;