import type { ExpressionAnnotation, MediaUpload } from './field-model'; import type { JsonSchema } from './types'; /** * Detect the media-upload annotations on a (ref-resolved) string schema. A field * opts into the upload control when it carries `contentEncoding: "base64"` plus a * `contentMediaType`, OR `format: "data-url"`. Anything else is a plain string. */ export declare function mediaUpload(schema: JsonSchema): MediaUpload | undefined; /** * Detect the `x-tai42-expression` annotation on a (ref-resolved) string schema, * mirroring {@link mediaUpload}: a well-formed annotation opts the field into the * jq expression editor; anything else — absent, non-object, unknown language, or * any wrongly-typed member — yields `undefined`, so the field renders EXACTLY as * the plain string input it is today. Malformed payloads NEVER throw: a bad * annotation is a server-side authoring bug, and degrading to the ordinary text * box keeps the form usable while staying byte-identical to the unannotated * rendering. */ export declare function expressionAnnotation(schema: JsonSchema): ExpressionAnnotation | undefined; //# sourceMappingURL=string-annotations.d.ts.map