import type { TypeAlias } from "../../types.js"; export type TypeTextResult = { alias: TypeAlias; } | { message: string; }; /** * The type alias `type = ` declares, or the problem with the * text. `field` names the workflow field in messages. An `inputs` type must * be an object type. The text may not carry a tag: a `@validate` names a * function the generated program would call, and a `@jsonSchema` is data the * program would carry, and neither is something a workflow should choose. */ export declare function parseTypeText(name: string, text: string, field: string): TypeTextResult; /** The top-level property names of an `inputs` object type, or none when * the text is not one. Nested property names are not inputs. */ export declare function inputNames(text: string): string[]; /** The declaration line, printed by the printer `describe` uses. */ export declare function printType(alias: TypeAlias): string;