/**
 * @license
 * Copyright 2025 Steven Roussey <sroussey@gmail.com>
 * SPDX-License-Identifier: Apache-2.0
 */
import { CreateWorkflow, IExecuteContext, TaskConfig } from "@workglow/task-graph";
import { FileLoaderTask as BaseFileLoaderTask, FileLoaderTaskInput, FileLoaderTaskOutput } from "./FileLoaderTask";
export type { FileLoaderTaskInput, FileLoaderTaskOutput };
/**
 * Server-only task for loading documents from the filesystem.
 * Uses Node.js/Bun file APIs directly for better performance.
 * Only available in Node.js and Bun environments.
 *
 * For cross-platform document loading (including browser), use FileLoaderTask with URLs.
 */
export declare class FileLoaderTask extends BaseFileLoaderTask {
    execute(input: FileLoaderTaskInput, context: IExecuteContext): Promise<FileLoaderTaskOutput>;
}
export declare const fileLoader: (input: FileLoaderTaskInput, config?: TaskConfig) => Promise<{
    csv?: unknown[] | undefined;
    frontmatter?: {
        [x: string]: unknown;
    } | undefined;
    image?: string | undefined;
    json?: unknown;
    metadata: {
        format?: string | undefined;
        mimeType?: string | undefined;
        size?: number | undefined;
        title?: string | undefined;
        url?: string | undefined;
    };
    pdf?: string | undefined;
    text?: string | undefined;
}>;
declare module "@workglow/task-graph" {
    interface Workflow {
        fileLoader: CreateWorkflow<FileLoaderTaskInput, FileLoaderTaskOutput, TaskConfig>;
    }
}
//# sourceMappingURL=FileLoaderTask.server.d.ts.map