@shopify/prettier-plugin-liquid
Version:
Prettier Liquid/HTML plugin by Shopify
14 lines (13 loc) • 2.02 kB
TypeScript
import { RawMarkup, LiquidDocParamNode, LiquidDocExampleNode, LiquidDocDescriptionNode } from '@shopify/liquid-html-parser';
import { Doc, doc } from 'prettier';
import { AstPath, LiquidAstPath, LiquidBranch, LiquidParserOptions, LiquidPrinter, LiquidPrinterArgs, LiquidRawTag, LiquidTag } from '../../types';
export declare function printLiquidVariableOutput(path: LiquidAstPath, _options: LiquidParserOptions, print: LiquidPrinter, { leadingSpaceGroupId, trailingSpaceGroupId }: LiquidPrinterArgs): doc.builders.Group;
export declare function printLiquidBlockStart(path: AstPath<LiquidTag | LiquidBranch>, options: LiquidParserOptions, print: LiquidPrinter, args?: LiquidPrinterArgs): Doc;
export declare function printLiquidBlockEnd(path: AstPath<LiquidTag>, _options: LiquidParserOptions, _print: LiquidPrinter, args?: LiquidPrinterArgs): Doc;
export declare function printLiquidTag(path: AstPath<LiquidTag>, options: LiquidParserOptions, print: LiquidPrinter, args: LiquidPrinterArgs): Doc;
export declare function printLiquidRawTag(path: AstPath<LiquidRawTag>, options: LiquidParserOptions, print: LiquidPrinter, { isLiquidStatement }: LiquidPrinterArgs): Doc;
export declare function printLiquidDoc(path: AstPath<RawMarkup>, _options: LiquidParserOptions, print: LiquidPrinter, _args: LiquidPrinterArgs): (doc.builders.Concat | doc.builders.Indent)[];
export declare function printLiquidDocParam(path: AstPath<LiquidDocParamNode>, options: LiquidParserOptions, _print: LiquidPrinter, _args: LiquidPrinterArgs): Doc;
export declare function printLiquidDocExample(path: AstPath<LiquidDocExampleNode>, options: LiquidParserOptions, _print: LiquidPrinter, _args: LiquidPrinterArgs): Doc;
export declare function printLiquidDocDescription(path: AstPath<LiquidDocDescriptionNode>, options: LiquidParserOptions, _print: LiquidPrinter, _args: LiquidPrinterArgs): Doc;
export declare function printLiquidBranch(path: AstPath<LiquidBranch>, options: LiquidParserOptions, print: LiquidPrinter, args: LiquidPrinterArgs): Doc;