/**
 * File-based extraction functions
 *
 * Provides extraction functions for files in filesystem-based environments (Node.js, Deno, Bun)
 * and browser File/Blob objects.
 */
import type { ExtractionConfig as ExtractionConfigType, ExtractionResult } from "../types.d.ts";
/**
 * Extract content from a file on the file system
 *
 * Node.js and Deno specific function that reads a file from the file system
 * and extracts content from it. Automatically detects MIME type if not provided.
 *
 * @param path - Path to the file to extract from
 * @param mimeType - Optional MIME type of the file. If not provided, will attempt to detect
 * @param config - Optional extraction configuration
 * @returns Promise resolving to the extraction result
 * @throws {Error} If WASM module is not initialized, file doesn't exist, or extraction fails
 *
 * @example Extract with auto-detection
 * ```typescript
 * const result = await extractFile('./document.pdf');
 * console.log(result.content);
 * ```
 *
 * @example Extract with explicit MIME type
 * ```typescript
 * const result = await extractFile('./document.docx', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document');
 * ```
 *
 * @example Extract from Node.js with config
 * ```typescript
 * import { extractFile } from '@kreuzberg/wasm';
 * import { readFile } from 'fs/promises';
 *
 * const result = await extractFile('./report.xlsx', null, {
 *   chunking: {
 *     maxChars: 1000
 *   }
 * });
 * ```
 */
export declare function extractFile(path: string, mimeType?: string | null, config?: ExtractionConfigType | null): Promise<ExtractionResult>;
/**
 * Extract content from a File or Blob (browser-friendly wrapper)
 *
 * Convenience function that wraps fileToUint8Array and extractBytes,
 * providing a streamlined API for browser applications handling file inputs.
 *
 * @param file - The File or Blob to extract from
 * @param mimeType - Optional MIME type. If not provided, uses file.type if available
 * @param config - Optional extraction configuration
 * @returns Promise resolving to the extraction result
 * @throws {Error} If WASM module is not initialized or extraction fails
 *
 * @example Simple file extraction
 * ```typescript
 * const fileInput = document.getElementById('file');
 * fileInput.addEventListener('change', async (e) => {
 *   const file = e.target.files?.[0];
 *   if (file) {
 *     const result = await extractFromFile(file);
 *     console.log(result.content);
 *   }
 * });
 * ```
 *
 * @example With configuration
 * ```typescript
 * const result = await extractFromFile(file, file.type, {
 *   chunking: { maxChars: 1000 },
 *   images: { extractImages: true }
 * });
 * ```
 */
export declare function extractFromFile(file: File | Blob, mimeType?: string | null, config?: ExtractionConfigType | null): Promise<ExtractionResult>;
//# sourceMappingURL=files.d.ts.map