import { FabricError } from './error.js'; import type { ResultExtractionOptions, ResultValidator } from './types.js'; export declare const RESULT_START_DELIMITER = "---RESULT_START---"; export declare const RESULT_END_DELIMITER = "---RESULT_END---"; export declare const FINISH_TOOL_NAME = "finish"; export declare const GIVE_UP_TOOL_NAME = "give_up"; /** Thrown when the LLM calls the `give_up` tool, indicating it cannot produce a * result that conforms to the required schema. */ export declare class ResultUnavailableError extends FabricError { constructor(reason: string); } /** Footer appended to user prompts/skill bodies when a `result` schema is set. */ export declare function buildResultFooter(): string; /** Follow-up prompt sent when the LLM ends a turn without calling `finish` or `give_up`. */ export declare function buildResultFollowUpPrompt(): string; export declare function validateResult(value: unknown, validator?: ResultValidator, extraction?: boolean | ResultExtractionOptions): Promise; export declare function extractResultValue(value: unknown, extraction?: boolean | ResultExtractionOptions): unknown; export declare function buildResultRetryPrompt(error: unknown, extraction?: boolean | ResultExtractionOptions): string; //# sourceMappingURL=result.d.ts.map