export declare const MAX_FILES = 10; export declare const MAX_FILE_SIZE: number; export declare const FETCH_TIMEOUT = 15000; export declare const ROOT_PATTERNS: RegExp[]; export declare const SECONDARY_PATHS: string[]; export declare const CODE_MAX_FILES = 20; export declare const CODE_MAX_TOTAL_BYTES: number; export interface CodeAnalysisFile { filename: string; content: string; } export interface CodeAnalysisResult { source: "code"; fileCount: number; filesAnalyzed: string[]; colors: Record; cssCustomProperties: Record; fonts: CodeAnalysisState["fonts"]; spacing: CodeAnalysisState["spacing"]; borderRadius: CodeAnalysisState["borderRadius"]; stylingFramework: CodeAnalysisState["stylingFramework"]; rawExtracts: CodeAnalysisState["rawExtracts"]; } export declare const HEX_COLOR_RE: RegExp; export declare const NAMED_COLOR_RE: RegExp; export declare const FONT_NAME_RE: RegExp; export declare const COLOR_VAR_PATTERN: RegExp; export declare const FRAMEWORK_DETECTORS: { name: string; label: string; }[]; export type ContentType = "presentation" | "document" | "spreadsheet" | "pdf" | "other"; export interface ParsedCss { cssCustomProperties: Record | undefined; fonts: string[] | undefined; } export interface ParsedTailwindConfig { colors?: Record; fontFamily?: Record; spacing?: Record; borderRadius?: Record; } export interface CodeAnalysisState { colors: Record; cssCustomProperties: Record; fonts: { family: string; source?: string; }[]; spacing: Record; borderRadius: Record; stylingFramework: string | null; rawExtracts: { filename: string; type: string; data: unknown; }[]; seenFonts: Set; } export interface UrlExtractionResult { url: string; pageTitle?: string; metaDescription?: string; themeColor?: string; cssCustomProperties?: Record; colors?: string[]; fontFaces?: { family?: string; src?: string; }[]; googleFonts?: string[]; ogImage?: string; favicon?: string; stylesheetUrls?: string[]; stylesheetFailures?: { url: string; error: string; }[]; } export interface GitHubFetchOptions { token?: string | null; ref?: string; } export interface GitHubRepoReference { owner: string; repo: string; ref?: string; subpath?: string; } export interface GitHubJsonResult { ok: boolean; status: number; data: T | null; message?: string; } export declare function validateUrl(url: string): void; export declare function parseGitHubRepoReference(raw: string): GitHubRepoReference; export declare function parseOwnerRepo(raw: string): { owner: string; repo: string; }; export declare function canonicalGitHubRepoUrl(raw: string): string; export declare function fetchGitHubJsonResult(owner: string, repo: string, path: string, options?: GitHubFetchOptions): Promise>; export declare function fetchGitHubJson(owner: string, repo: string, path: string, options?: GitHubFetchOptions): Promise; export declare function fetchGitHubRaw(owner: string, repo: string, path: string, options?: GitHubFetchOptions): Promise; export declare function parseTailwindConfig(content: string): Record; export declare function parseCss(content: string): ParsedCss; export declare function detectStylingFramework(content: string): string | undefined; export declare function createCodeAnalysisState(): CodeAnalysisState; export declare function addFont(state: CodeAnalysisState, family: string, source?: string): void; export declare function extractCssVars(state: CodeAnalysisState, content: string): void; export declare function extractCodeColors(state: CodeAnalysisState, content: string): void; export declare function extractCodeFonts(state: CodeAnalysisState, content: string, filename: string): void; export declare function analyzeCssFile(state: CodeAnalysisState, content: string, filename: string): void; export declare function analyzeTailwindConfig(state: CodeAnalysisState, content: string, filename: string): void; export declare function analyzeJsonTheme(state: CodeAnalysisState, content: string, filename: string): void; export declare function analyzePackageJson(state: CodeAnalysisState, content: string, filename: string): void; export declare function analyzeThemeSourceFile(state: CodeAnalysisState, content: string, filename: string): void; export declare function analyzeCodeFile(state: CodeAnalysisState, filename: string, content: string): void; export declare function analyzeCodeFiles(files: CodeAnalysisFile[]): CodeAnalysisResult; export declare function unique(arr: string[]): string[]; export declare function extractDocumentColors(text: string): string[]; export declare function extractDocumentFonts(text: string): string[]; export declare function classifyFile(fileType: string): ContentType; export declare function suggestionsForType(contentType: ContentType, hasText: boolean): string[]; export declare function extractDesignTokensFromUrl(rawUrl: string): Promise;