import { type Attachment, type TextAttachmentType } from "@superblocksteam/library-shared/types";
export declare function inferTextAttachmentType(params: {
    attachmentType: unknown;
    mimeType: unknown;
    fileName?: string;
}): TextAttachmentType | null;
export declare function normalizeTextAttachmentForModel(attachment: Attachment): {
    fileName: string;
    content: string;
    mimeType: string;
    tagName: TextAttachmentType;
} | null;
export declare function sanitizeToolOutput(toolName: string, output: any): any;
/**
 * Sanitizes message content that may contain HTML error responses from AI
 * providers. Extracts a human-readable title when possible, otherwise returns
 * a generic error string. Non-HTML content is returned unchanged.
 */
export declare function sanitizeAiProviderResponse(content: string | undefined): string | undefined;
//# sourceMappingURL=utils.d.ts.map