import { Form, Formatter, LayerFormat, FormatterProgressivePolicy, AsterdocRenderer, RendererLayer } from '@asterdoc/types'; import { FieldFormattingOptions } from './text/field-formatter.js'; export { ArtifactFieldFormatError, FormattedFieldValue, ProgressiveFormattingOptions, formatFieldData, formatValueAt, unwrapFormattedValue, validateFieldBindings, withoutSensitiveValues } from './text/field-formatter.js'; import { T as TextSignatureOptions } from './signatures-cS3V0yR3.js'; import { T as TemplateExpressionOptions } from './values-CR_sHqH7.js'; export { D as DeclaredValue, a as TemplateDiagnostic, b as TemplateError, c as TemplatePosition, d as TemplateValueResolver, f as formValueResolver } from './values-CR_sHqH7.js'; export { S as SigningDirectiveUse, T as TemplateCheckOptions, a as checkTextTemplate, t as textTemplateSigningDirectives } from './check-DDrlm9Ym.js'; import '@asterdoc/expr'; /** Places a signing mark for a party at a location: `signature`, `initials`, and the related directives. */ type SigningDirective = (party: unknown, root: Record, args: unknown[]) => unknown; interface RenderTextOptions { template: string; data: Record; form?: Form; formatter?: Formatter; progressive?: FieldFormattingOptions['progressive']; signatureOptions?: TextSignatureOptions; /** The expression context and configured functions templates read. */ expressions?: TemplateExpressionOptions; /** The layer key, named in template errors. */ layer?: string; /** * The output MIME type. `text/html` escapes interpolated values; plain text * and Markdown print them unchanged. */ mimeType?: string; /** How the layer prints values, applied over `formatter`. */ format?: LayerFormat; } declare function renderText(options: RenderTextOptions): string; interface TextRendererOptions { formatter?: Formatter; progressive?: FormatterProgressivePolicy; signatureOptions?: TextSignatureOptions; /** Configured functions templates can call when no artifact context is supplied. */ expressions?: Pick; } type TextLayer = RendererLayer & { type: 'text'; content: string; }; declare function textRenderer(options?: TextRendererOptions): AsterdocRenderer; export { FieldFormattingOptions, type RenderTextOptions, type SigningDirective, TemplateExpressionOptions, type TextRendererOptions, TextSignatureOptions, renderText, textRenderer };