import type { InferSchema } from "../../../src/extensions/schema/index.js"; type SafeParseResult = { success: true; data: T; } | { success: false; error: Error & { issues: unknown[]; }; }; import { type ApiClient } from "../../shared/config.js"; import type { ParsedArgs } from "../../shared/types.js"; import * as commandHelpers from "./command-helpers.js"; import { type Logger } from "../../../src/utils/index.js"; import { runKnowledgeParser } from "./parser.js"; import { type KnowledgeIngestFailedFileResult, type KnowledgeIngestFileResult, type KnowledgeIngestSkippedFileResult } from "./result.js"; type KnowledgeSource = { kind: "local"; input: string; localPath: string; } | { kind: "upload"; input: string; uploadPath: string; localPath: string; }; export interface KnowledgeSourceCollection { sources: KnowledgeSource[]; skipped: KnowledgeIngestSkippedFileResult[]; } type DownloadResult = { uploadPath: string; localPath: string; bytes?: number; }; declare const getKnowledgeIngestArgsSchema: () => import("../../../src/internal-agents/schema.js").Schema; projectDir: import("../../../src/internal-agents/schema.js").Schema; sources: import("../../../src/internal-agents/schema.js").Schema; path: import("../../../src/internal-agents/schema.js").Schema; all: import("../../../src/internal-agents/schema.js").Schema; recursive: import("../../../src/internal-agents/schema.js").Schema; outputDir: import("../../../src/internal-agents/schema.js").Schema; knowledgePath: import("../../../src/internal-agents/schema.js").Schema; description: import("../../../src/internal-agents/schema.js").Schema; slug: import("../../../src/internal-agents/schema.js").Schema; json: import("../../../src/internal-agents/schema.js").Schema; quiet: import("../../../src/internal-agents/schema.js").Schema; }>>; export type KnowledgeIngestOptions = InferSchema>; export declare function parseKnowledgeIngestArgs(args: ParsedArgs): SafeParseResult; export declare const normalizeKnowledgeInputPath: typeof commandHelpers.normalizeKnowledgeInputPath; export declare const normalizeProjectUploadPath: typeof commandHelpers.normalizeProjectUploadPath; export declare const formatKnowledgeUploadSource: typeof commandHelpers.formatKnowledgeUploadSource; export declare const isLikelyLocalPath: typeof commandHelpers.isLikelyLocalPath; export declare const stripChatUploadPrefix: typeof commandHelpers.stripChatUploadPrefix; export declare const resolveKnowledgeDownloadOutputDir: typeof commandHelpers.resolveKnowledgeDownloadOutputDir; export declare const buildSuggestedSlug: typeof commandHelpers.buildSuggestedSlug; export declare const ensureUniqueSlugs: typeof commandHelpers.ensureUniqueSlugs; export declare const deriveKnowledgeRemotePath: typeof commandHelpers.deriveKnowledgeRemotePath; export declare const createKnowledgeIngestResult: typeof commandHelpers.createKnowledgeIngestResult; export { type KnowledgeParserInput, type KnowledgeParserResult, runKnowledgeParser, runKnowledgeParsers, } from "./parser.js"; export declare function collectKnowledgeSources(options: Pick, deps: { client: ApiClient; projectSlug: string; downloadUploads: (uploadPaths: string[]) => Promise; }): Promise; export declare function ingestResolvedSources(sources: KnowledgeSource[], options: KnowledgeIngestOptions, deps: { client: ApiClient; projectSlug: string; outputDir: string; runParser: typeof runKnowledgeParser; uploadKnowledgeFile: (remotePath: string, localPath: string) => Promise<{ path: string; }>; eventLogger?: Logger | null; }): Promise<{ ingested: KnowledgeIngestFileResult[]; failed: KnowledgeIngestFailedFileResult[]; }>; export declare function knowledgeCommand(args: ParsedArgs): Promise; //# sourceMappingURL=command.d.ts.map