n8n-nodes-pdf-accessibility
Version:
AI-powered PDF accessibility automation for N8N - comprehensive WCAG compliance analysis, intelligent remediation, and professional audit reporting with 5 integrated accessibility tools
30 lines (29 loc) • 1.15 kB
TypeScript
import { IExecuteFunctions } from 'n8n-workflow';
import { AccessibilityAnalysis } from '../interfaces';
import { LLMProviderType, IAnalysisOptions } from '../providers';
export declare class AiUtils {
/**
* Analyzes PDF content for accessibility issues using the specified LLM provider
*/
static analyzeAccessibility(context: IExecuteFunctions, extractedText: string, documentInfo: {
fileName: string;
pageCount: number;
wordCount: number;
}, providerType: LLMProviderType, credentialType: string, options: IAnalysisOptions): Promise<AccessibilityAnalysis>;
/**
* Validates LLM provider credentials
*/
static validateCredentials(context: IExecuteFunctions, providerType: LLMProviderType, credentialType: string): Promise<boolean>;
/**
* Gets available models for a provider type
*/
static getProviderModels(providerType: LLMProviderType): string[];
/**
* Gets supported providers
*/
static getSupportedProviders(): LLMProviderType[];
/**
* Estimates token count for cost calculation
*/
static estimateTokens(text: string): number;
}