import type { AFSEntry } from "@aigne/afs"; import type { AgentInvokeOptions, AgentOptions, Message } from "../../../agents/agent.js"; import type { PromiseOrValue } from "../../../utils/type-utils.js"; import { AFSSkillBase } from "./base.js"; export interface AFSReadInput extends Message { path: string; offset?: number; limit?: number; } export interface AFSReadOutput extends Message { status: string; tool: string; path: string; data?: AFSEntry | null; message?: string; totalLines?: number; returnedLines?: number; truncated?: boolean; offset?: number; } export interface AFSReadAgentOptions extends AgentOptions { afs: NonNullable["afs"]>; } export declare class AFSReadAgent extends AFSSkillBase { constructor(options: AFSReadAgentOptions); formatOutput(output: AFSReadOutput): PromiseOrValue; process(input: AFSReadInput, _options: AgentInvokeOptions): Promise; }