import type { FieldInput } from './types.js'; import fixReadability from './definitions/fixReadability.js'; import translate from './definitions/translate.js'; import rewrite from './definitions/rewrite.js'; import generateContent from './definitions/generateContent.js'; export { defineStreamTemplate } from './defineStreamTemplate.js'; export { buildOutputFormatBlock } from './utils.js'; export type { FieldInput, TemplateResult, StreamTemplateDefinition, } from './types.js'; type FixReadabilityParams = Parameters<(typeof fixReadability)['build']>[0]; type TranslateParams = Parameters<(typeof translate)['build']>[0]; type RewriteParams = Parameters<(typeof rewrite)['build']>[0]; type GenerateContentParams = Parameters<(typeof generateContent)['build']>[0]; export type TemplateCall = { template: 'fix_readability'; templateParams: FixReadabilityParams; } | { template: 'translate'; templateParams: TranslateParams; } | { template: 'rewrite'; templateParams: RewriteParams; } | { template: 'generate_content'; templateParams: GenerateContentParams; }; /** * Resolve a template call into a system prompt and user message * for the streaming sub-agent. Optionally includes additional context * from skills that provide stream context for the given template. * * When skill context is provided, it replaces the template's * defaultInstructions. They are never both appended. */ export declare function resolveTemplate(call: TemplateCall, fields: FieldInput[], skillContext?: string): { systemPrompt: string; userMessage: string; };