export type ListSectionType = 'form' | 'toolbar' | 'table' | 'dialog'; export type DetailSectionType = 'header' | 'title' | 'form' | 'table' | 'attachment' | 'footer' | 'dialog'; export type SectionType = ListSectionType | DetailSectionType; export type ParseErrorType = 'access_denied' | 'content_invalid' | 'timeout' | 'network' | 'unknown'; export type PageType = 'list' | 'detail' | 'mixed'; export type FormFieldType = 'input' | 'select' | 'date' | 'dateRange' | 'textarea' | 'number' | 'radio' | 'checkbox' | 'unknown'; export declare const VALID_FORM_FIELD_TYPES: FormFieldType[]; export interface FormField { label: string; fieldType: FormFieldType; required: boolean; } export interface PageSection { type: SectionType; title?: string; labels: string[]; buttons: string[]; tableHeaders: string[]; formFields?: FormField[]; } export interface ParsedPageData { title: string; sections: PageSection[]; pageType: PageType; rawText: string; url: string; } export interface ParseResult { success: boolean; data?: ParsedPageData; needsBrowserAgent?: boolean; error?: { type: ParseErrorType; message: string; }; url: string; } export declare class ParseError extends Error { type: ParseErrorType; needsBrowserAgent: boolean; constructor(message: string, type: ParseErrorType, needsBrowserAgent?: boolean); }