import type { JSONSchema7 } from 'json-schema'; import { z } from 'zod'; import type { AgentKnowledgeCommandRequest, AgentKnowledgeCommandResult } from '../../agent-knowledge-command.service'; export declare const DEFAULT_SEARCH_HEAD_LIMIT = 250; export declare const KNOWLEDGE_OPERATIONS: readonly ["list", "search", "read", "csv_query", "csv_profile", "csv_distinct", "csv_aggregate"]; declare const searchOutputModeSchema: z.ZodEnum<["files_with_matches", "content", "count"]>; declare const searchMatchModeSchema: z.ZodEnum<["any", "all_on_same_line", "all_within_lines"]>; export declare const csvFilterSchema: z.ZodDiscriminatedUnion<"op", [z.ZodObject<{ column: z.ZodString; op: z.ZodLiteral<"eq">; value: z.ZodString; }, "strip", z.ZodTypeAny, { value: string; column: string; op: "eq"; }, { value: string; column: string; op: "eq"; }>, z.ZodObject<{ column: z.ZodString; op: z.ZodLiteral<"in">; value: z.ZodArray; }, "strip", z.ZodTypeAny, { value: string[]; column: string; op: "in"; }, { value: string[]; column: string; op: "in"; }>, z.ZodObject<{ column: z.ZodString; op: z.ZodLiteral<"contains">; value: z.ZodString; }, "strip", z.ZodTypeAny, { value: string; column: string; op: "contains"; }, { value: string; column: string; op: "contains"; }>]>; export declare const csvQueryInputSchema: z.ZodObject<{ operation: z.ZodLiteral<"csv_query">; file: z.ZodString; select: z.ZodOptional>; where: z.ZodOptional; value: z.ZodString; }, "strip", z.ZodTypeAny, { value: string; column: string; op: "eq"; }, { value: string; column: string; op: "eq"; }>, z.ZodObject<{ column: z.ZodString; op: z.ZodLiteral<"in">; value: z.ZodArray; }, "strip", z.ZodTypeAny, { value: string[]; column: string; op: "in"; }, { value: string[]; column: string; op: "in"; }>, z.ZodObject<{ column: z.ZodString; op: z.ZodLiteral<"contains">; value: z.ZodString; }, "strip", z.ZodTypeAny, { value: string; column: string; op: "contains"; }, { value: string; column: string; op: "contains"; }>]>, "many">>; rowNumber: z.ZodOptional; limit: z.ZodDefault; }, "strict", z.ZodTypeAny, { file: string; operation: "csv_query"; limit: number; select?: string[] | undefined; rowNumber?: number | undefined; where?: ({ value: string; column: string; op: "eq"; } | { value: string[]; column: string; op: "in"; } | { value: string; column: string; op: "contains"; })[] | undefined; }, { file: string; operation: "csv_query"; limit?: number | undefined; select?: string[] | undefined; rowNumber?: number | undefined; where?: ({ value: string; column: string; op: "eq"; } | { value: string[]; column: string; op: "in"; } | { value: string; column: string; op: "contains"; })[] | undefined; }>; declare const csvProfileInputSchema: z.ZodObject<{ operation: z.ZodLiteral<"csv_profile">; file: z.ZodString; sampleSize: z.ZodDefault; distinctLimit: z.ZodDefault; }, "strict", z.ZodTypeAny, { file: string; operation: "csv_profile"; sampleSize: number; distinctLimit: number; }, { file: string; operation: "csv_profile"; sampleSize?: number | undefined; distinctLimit?: number | undefined; }>; declare const csvDistinctInputSchema: z.ZodObject<{ operation: z.ZodLiteral<"csv_distinct">; file: z.ZodString; column: z.ZodString; where: z.ZodOptional; value: z.ZodString; }, "strip", z.ZodTypeAny, { value: string; column: string; op: "eq"; }, { value: string; column: string; op: "eq"; }>, z.ZodObject<{ column: z.ZodString; op: z.ZodLiteral<"in">; value: z.ZodArray; }, "strip", z.ZodTypeAny, { value: string[]; column: string; op: "in"; }, { value: string[]; column: string; op: "in"; }>, z.ZodObject<{ column: z.ZodString; op: z.ZodLiteral<"contains">; value: z.ZodString; }, "strip", z.ZodTypeAny, { value: string; column: string; op: "contains"; }, { value: string; column: string; op: "contains"; }>]>, "many">>; limit: z.ZodDefault; }, "strict", z.ZodTypeAny, { file: string; operation: "csv_distinct"; limit: number; column: string; where?: ({ value: string; column: string; op: "eq"; } | { value: string[]; column: string; op: "in"; } | { value: string; column: string; op: "contains"; })[] | undefined; }, { file: string; operation: "csv_distinct"; column: string; limit?: number | undefined; where?: ({ value: string; column: string; op: "eq"; } | { value: string[]; column: string; op: "in"; } | { value: string; column: string; op: "contains"; })[] | undefined; }>; declare const csvAggregateInputSchema: z.ZodObject<{ operation: z.ZodLiteral<"csv_aggregate">; file: z.ZodString; metric: z.ZodOptional; metrics: z.ZodOptional>; functions: z.ZodDefault, "many">>; where: z.ZodOptional; value: z.ZodString; }, "strip", z.ZodTypeAny, { value: string; column: string; op: "eq"; }, { value: string; column: string; op: "eq"; }>, z.ZodObject<{ column: z.ZodString; op: z.ZodLiteral<"in">; value: z.ZodArray; }, "strip", z.ZodTypeAny, { value: string[]; column: string; op: "in"; }, { value: string[]; column: string; op: "in"; }>, z.ZodObject<{ column: z.ZodString; op: z.ZodLiteral<"contains">; value: z.ZodString; }, "strip", z.ZodTypeAny, { value: string; column: string; op: "contains"; }, { value: string; column: string; op: "contains"; }>]>, "many">>; groupBy: z.ZodOptional>; orderBy: z.ZodOptional>; }, "strict", z.ZodTypeAny, { column: string; direction: "asc" | "desc"; }, { column: string; direction?: "asc" | "desc" | undefined; }>>; limit: z.ZodDefault; }, "strict", z.ZodTypeAny, { file: string; operation: "csv_aggregate"; limit: number; functions: ("min" | "max" | "count" | "sum" | "avg")[]; metrics?: string[] | undefined; groupBy?: string[] | undefined; where?: ({ value: string; column: string; op: "eq"; } | { value: string[]; column: string; op: "in"; } | { value: string; column: string; op: "contains"; })[] | undefined; metric?: string | undefined; orderBy?: { column: string; direction: "asc" | "desc"; } | undefined; }, { file: string; operation: "csv_aggregate"; limit?: number | undefined; functions?: ("min" | "max" | "count" | "sum" | "avg")[] | undefined; metrics?: string[] | undefined; groupBy?: string[] | undefined; where?: ({ value: string; column: string; op: "eq"; } | { value: string[]; column: string; op: "in"; } | { value: string; column: string; op: "contains"; })[] | undefined; metric?: string | undefined; orderBy?: { column: string; direction?: "asc" | "desc" | undefined; } | undefined; }>; export declare const searchKnowledgeParsingSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"list">; }, "strict", z.ZodTypeAny, { operation: "list"; }, { operation: "list"; }>, z.ZodObject<{ operation: z.ZodLiteral<"search">; query: z.ZodOptional; queries: z.ZodOptional>; match_mode: z.ZodDefault>; output_mode: z.ZodDefault>; caseInsensitive: z.ZodOptional; fixedStrings: z.ZodOptional; context: z.ZodOptional; file: z.ZodOptional; files: z.ZodOptional>; offset: z.ZodDefault; head_limit: z.ZodDefault; }, "strict", z.ZodTypeAny, { operation: "search"; offset: number; match_mode: "any" | "all_on_same_line" | "all_within_lines"; output_mode: "content" | "count" | "files_with_matches"; head_limit: number; query?: string | undefined; file?: string | undefined; files?: string[] | undefined; queries?: string[] | undefined; caseInsensitive?: boolean | undefined; fixedStrings?: boolean | undefined; context?: number | undefined; }, { operation: "search"; query?: string | undefined; file?: string | undefined; files?: string[] | undefined; queries?: string[] | undefined; offset?: number | undefined; caseInsensitive?: boolean | undefined; fixedStrings?: boolean | undefined; context?: number | undefined; match_mode?: "any" | "all_on_same_line" | "all_within_lines" | undefined; output_mode?: "content" | "count" | "files_with_matches" | undefined; head_limit?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"read">; file: z.ZodString; lineRange: z.ZodOptional>; }, "strict", z.ZodTypeAny, { file: string; operation: "read"; lineRange?: { end: number; start: number; } | undefined; }, { file: string; operation: "read"; lineRange?: { end: number; start: number; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"csv_query">; file: z.ZodString; select: z.ZodOptional>; where: z.ZodOptional; value: z.ZodString; }, "strip", z.ZodTypeAny, { value: string; column: string; op: "eq"; }, { value: string; column: string; op: "eq"; }>, z.ZodObject<{ column: z.ZodString; op: z.ZodLiteral<"in">; value: z.ZodArray; }, "strip", z.ZodTypeAny, { value: string[]; column: string; op: "in"; }, { value: string[]; column: string; op: "in"; }>, z.ZodObject<{ column: z.ZodString; op: z.ZodLiteral<"contains">; value: z.ZodString; }, "strip", z.ZodTypeAny, { value: string; column: string; op: "contains"; }, { value: string; column: string; op: "contains"; }>]>, "many">>; rowNumber: z.ZodOptional; limit: z.ZodDefault; }, "strict", z.ZodTypeAny, { file: string; operation: "csv_query"; limit: number; select?: string[] | undefined; rowNumber?: number | undefined; where?: ({ value: string; column: string; op: "eq"; } | { value: string[]; column: string; op: "in"; } | { value: string; column: string; op: "contains"; })[] | undefined; }, { file: string; operation: "csv_query"; limit?: number | undefined; select?: string[] | undefined; rowNumber?: number | undefined; where?: ({ value: string; column: string; op: "eq"; } | { value: string[]; column: string; op: "in"; } | { value: string; column: string; op: "contains"; })[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"csv_profile">; file: z.ZodString; sampleSize: z.ZodDefault; distinctLimit: z.ZodDefault; }, "strict", z.ZodTypeAny, { file: string; operation: "csv_profile"; sampleSize: number; distinctLimit: number; }, { file: string; operation: "csv_profile"; sampleSize?: number | undefined; distinctLimit?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"csv_distinct">; file: z.ZodString; column: z.ZodString; where: z.ZodOptional; value: z.ZodString; }, "strip", z.ZodTypeAny, { value: string; column: string; op: "eq"; }, { value: string; column: string; op: "eq"; }>, z.ZodObject<{ column: z.ZodString; op: z.ZodLiteral<"in">; value: z.ZodArray; }, "strip", z.ZodTypeAny, { value: string[]; column: string; op: "in"; }, { value: string[]; column: string; op: "in"; }>, z.ZodObject<{ column: z.ZodString; op: z.ZodLiteral<"contains">; value: z.ZodString; }, "strip", z.ZodTypeAny, { value: string; column: string; op: "contains"; }, { value: string; column: string; op: "contains"; }>]>, "many">>; limit: z.ZodDefault; }, "strict", z.ZodTypeAny, { file: string; operation: "csv_distinct"; limit: number; column: string; where?: ({ value: string; column: string; op: "eq"; } | { value: string[]; column: string; op: "in"; } | { value: string; column: string; op: "contains"; })[] | undefined; }, { file: string; operation: "csv_distinct"; column: string; limit?: number | undefined; where?: ({ value: string; column: string; op: "eq"; } | { value: string[]; column: string; op: "in"; } | { value: string; column: string; op: "contains"; })[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"csv_aggregate">; file: z.ZodString; metric: z.ZodOptional; metrics: z.ZodOptional>; functions: z.ZodDefault, "many">>; where: z.ZodOptional; value: z.ZodString; }, "strip", z.ZodTypeAny, { value: string; column: string; op: "eq"; }, { value: string; column: string; op: "eq"; }>, z.ZodObject<{ column: z.ZodString; op: z.ZodLiteral<"in">; value: z.ZodArray; }, "strip", z.ZodTypeAny, { value: string[]; column: string; op: "in"; }, { value: string[]; column: string; op: "in"; }>, z.ZodObject<{ column: z.ZodString; op: z.ZodLiteral<"contains">; value: z.ZodString; }, "strip", z.ZodTypeAny, { value: string; column: string; op: "contains"; }, { value: string; column: string; op: "contains"; }>]>, "many">>; groupBy: z.ZodOptional>; orderBy: z.ZodOptional>; }, "strict", z.ZodTypeAny, { column: string; direction: "asc" | "desc"; }, { column: string; direction?: "asc" | "desc" | undefined; }>>; limit: z.ZodDefault; }, "strict", z.ZodTypeAny, { file: string; operation: "csv_aggregate"; limit: number; functions: ("min" | "max" | "count" | "sum" | "avg")[]; metrics?: string[] | undefined; groupBy?: string[] | undefined; where?: ({ value: string; column: string; op: "eq"; } | { value: string[]; column: string; op: "in"; } | { value: string; column: string; op: "contains"; })[] | undefined; metric?: string | undefined; orderBy?: { column: string; direction: "asc" | "desc"; } | undefined; }, { file: string; operation: "csv_aggregate"; limit?: number | undefined; functions?: ("min" | "max" | "count" | "sum" | "avg")[] | undefined; metrics?: string[] | undefined; groupBy?: string[] | undefined; where?: ({ value: string; column: string; op: "eq"; } | { value: string[]; column: string; op: "in"; } | { value: string; column: string; op: "contains"; })[] | undefined; metric?: string | undefined; orderBy?: { column: string; direction?: "asc" | "desc" | undefined; } | undefined; }>]>; export declare const searchKnowledgeInputSchema: JSONSchema7; declare const searchMatchOutputSchema: z.ZodObject<{ fileId: z.ZodString; fileName: z.ZodString; relativePath: z.ZodString; lineNumber: z.ZodNumber; text: z.ZodString; readRange: z.ZodObject<{ start: z.ZodNumber; end: z.ZodNumber; }, "strip", z.ZodTypeAny, { end: number; start: number; }, { end: number; start: number; }>; truncated: z.ZodOptional; }, "strip", z.ZodTypeAny, { fileName: string; text: string; relativePath: string; fileId: string; lineNumber: number; readRange: { end: number; start: number; }; truncated?: boolean | undefined; }, { fileName: string; text: string; relativePath: string; fileId: string; lineNumber: number; readRange: { end: number; start: number; }; truncated?: boolean | undefined; }>; declare const searchResultOutputSchema: z.ZodObject<{ mode: z.ZodEnum<["files_with_matches", "content", "count"]>; query: z.ZodString; queries: z.ZodOptional>; matchMode: z.ZodOptional>; totalMatchingFiles: z.ZodNumber; totalMatchingLines: z.ZodNumber; files: z.ZodArray, "many">; matches: z.ZodArray; truncated: z.ZodOptional; }, "strip", z.ZodTypeAny, { fileName: string; text: string; relativePath: string; fileId: string; lineNumber: number; readRange: { end: number; start: number; }; truncated?: boolean | undefined; }, { fileName: string; text: string; relativePath: string; fileId: string; lineNumber: number; readRange: { end: number; start: number; }; truncated?: boolean | undefined; }>, "many">; truncated: z.ZodBoolean; appliedLimit: z.ZodOptional; appliedOffset: z.ZodOptional; nextOffset: z.ZodOptional; hint: z.ZodOptional; }, "strip", z.ZodTypeAny, { query: string; files: { fileName: string; id: string; relativePath: string; matchCount: number; }[]; mode: "content" | "count" | "files_with_matches"; truncated: boolean; totalMatchingFiles: number; totalMatchingLines: number; matches: { fileName: string; text: string; relativePath: string; fileId: string; lineNumber: number; readRange: { end: number; start: number; }; truncated?: boolean | undefined; }[]; hint?: string | undefined; queries?: string[] | undefined; matchMode?: "any" | "all_on_same_line" | "all_within_lines" | undefined; appliedLimit?: number | undefined; appliedOffset?: number | undefined; nextOffset?: number | undefined; }, { query: string; files: { fileName: string; id: string; relativePath: string; matchCount: number; }[]; mode: "content" | "count" | "files_with_matches"; truncated: boolean; totalMatchingFiles: number; totalMatchingLines: number; matches: { fileName: string; text: string; relativePath: string; fileId: string; lineNumber: number; readRange: { end: number; start: number; }; truncated?: boolean | undefined; }[]; hint?: string | undefined; queries?: string[] | undefined; matchMode?: "any" | "all_on_same_line" | "all_within_lines" | undefined; appliedLimit?: number | undefined; appliedOffset?: number | undefined; nextOffset?: number | undefined; }>; export declare const searchKnowledgeOutputSchema: z.ZodObject<{ operation: z.ZodEnum<["list", "search", "read", "csv_query", "csv_profile", "csv_distinct", "csv_aggregate"]>; files: z.ZodArray, "many">; result: z.ZodOptional; exitCode: z.ZodNullable; stdout: z.ZodString; stderr: z.ZodString; truncated: z.ZodBoolean; citation: z.ZodOptional>; instruction: z.ZodString; }, "strip", z.ZodTypeAny, { fileName: string; instruction: string; lineRange?: { end: number; start: number; } | undefined; }, { fileName: string; instruction: string; lineRange?: { end: number; start: number; } | undefined; }>>; }, "strip", z.ZodTypeAny, { command: "git_grep" | "cat" | "sed"; exitCode: number | null; stdout: string; stderr: string; truncated: boolean; citation?: { fileName: string; instruction: string; lineRange?: { end: number; start: number; } | undefined; } | undefined; }, { command: "git_grep" | "cat" | "sed"; exitCode: number | null; stdout: string; stderr: string; truncated: boolean; citation?: { fileName: string; instruction: string; lineRange?: { end: number; start: number; } | undefined; } | undefined; }>>; search: z.ZodOptional; query: z.ZodString; queries: z.ZodOptional>; matchMode: z.ZodOptional>; totalMatchingFiles: z.ZodNumber; totalMatchingLines: z.ZodNumber; files: z.ZodArray, "many">; matches: z.ZodArray; truncated: z.ZodOptional; }, "strip", z.ZodTypeAny, { fileName: string; text: string; relativePath: string; fileId: string; lineNumber: number; readRange: { end: number; start: number; }; truncated?: boolean | undefined; }, { fileName: string; text: string; relativePath: string; fileId: string; lineNumber: number; readRange: { end: number; start: number; }; truncated?: boolean | undefined; }>, "many">; truncated: z.ZodBoolean; appliedLimit: z.ZodOptional; appliedOffset: z.ZodOptional; nextOffset: z.ZodOptional; hint: z.ZodOptional; }, "strip", z.ZodTypeAny, { query: string; files: { fileName: string; id: string; relativePath: string; matchCount: number; }[]; mode: "content" | "count" | "files_with_matches"; truncated: boolean; totalMatchingFiles: number; totalMatchingLines: number; matches: { fileName: string; text: string; relativePath: string; fileId: string; lineNumber: number; readRange: { end: number; start: number; }; truncated?: boolean | undefined; }[]; hint?: string | undefined; queries?: string[] | undefined; matchMode?: "any" | "all_on_same_line" | "all_within_lines" | undefined; appliedLimit?: number | undefined; appliedOffset?: number | undefined; nextOffset?: number | undefined; }, { query: string; files: { fileName: string; id: string; relativePath: string; matchCount: number; }[]; mode: "content" | "count" | "files_with_matches"; truncated: boolean; totalMatchingFiles: number; totalMatchingLines: number; matches: { fileName: string; text: string; relativePath: string; fileId: string; lineNumber: number; readRange: { end: number; start: number; }; truncated?: boolean | undefined; }[]; hint?: string | undefined; queries?: string[] | undefined; matchMode?: "any" | "all_on_same_line" | "all_within_lines" | undefined; appliedLimit?: number | undefined; appliedOffset?: number | undefined; nextOffset?: number | undefined; }>>; csv: z.ZodOptional; rowNumbers: z.ZodArray; rows: z.ZodArray, "many">; records: z.ZodOptional; }, "strip", z.ZodTypeAny, { values: Record; rowNumber: number; fileLineNumber: number; }, { values: Record; rowNumber: number; fileLineNumber: number; }>, "many">>; rowCount: z.ZodNumber; truncated: z.ZodBoolean; rowNumberBase: z.ZodOptional; ambiguity: z.ZodOptional; sampleDistinctValues: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { message: string; matchedRows: number; suggestedColumns: string[]; sampleDistinctValues?: Record | undefined; }, { message: string; matchedRows: number; suggestedColumns: string[]; sampleDistinctValues?: Record | undefined; }>>; }, "strip", z.ZodTypeAny, { fileName: string; columns: string[]; rows: string[][]; truncated: boolean; relativePath: string; rowNumbers: number[]; rowCount: number; records?: { values: Record; rowNumber: number; fileLineNumber: number; }[] | undefined; rowNumberBase?: string | undefined; ambiguity?: { message: string; matchedRows: number; suggestedColumns: string[]; sampleDistinctValues?: Record | undefined; } | undefined; }, { fileName: string; columns: string[]; rows: string[][]; truncated: boolean; relativePath: string; rowNumbers: number[]; rowCount: number; records?: { values: Record; rowNumber: number; fileLineNumber: number; }[] | undefined; rowNumberBase?: string | undefined; ambiguity?: { message: string; matchedRows: number; suggestedColumns: string[]; sampleDistinctValues?: Record | undefined; } | undefined; }>>; csvProfile: z.ZodOptional; rowCount: z.ZodNumber; sampleRows: z.ZodArray, "many">; columnProfiles: z.ZodArray; emptyCount: z.ZodNumber; distinctCount: z.ZodOptional; distinctCountTruncated: z.ZodOptional; sampleValues: z.ZodOptional>; }, "strip", z.ZodTypeAny, { name: string; inferredType: "string" | "number" | "boolean" | "date" | "empty" | "integer"; emptyCount: number; distinctCount?: number | undefined; distinctCountTruncated?: boolean | undefined; sampleValues?: string[] | undefined; }, { name: string; inferredType: "string" | "number" | "boolean" | "date" | "empty" | "integer"; emptyCount: number; distinctCount?: number | undefined; distinctCountTruncated?: boolean | undefined; sampleValues?: string[] | undefined; }>, "many">; likelyKeyColumns: z.ZodArray; likelyDisambiguatingColumns: z.ZodArray; }, "strip", z.ZodTypeAny, { fileName: string; columns: string[]; relativePath: string; rowCount: number; sampleRows: Record[]; columnProfiles: { name: string; inferredType: "string" | "number" | "boolean" | "date" | "empty" | "integer"; emptyCount: number; distinctCount?: number | undefined; distinctCountTruncated?: boolean | undefined; sampleValues?: string[] | undefined; }[]; likelyKeyColumns: string[]; likelyDisambiguatingColumns: string[]; }, { fileName: string; columns: string[]; relativePath: string; rowCount: number; sampleRows: Record[]; columnProfiles: { name: string; inferredType: "string" | "number" | "boolean" | "date" | "empty" | "integer"; emptyCount: number; distinctCount?: number | undefined; distinctCountTruncated?: boolean | undefined; sampleValues?: string[] | undefined; }[]; likelyKeyColumns: string[]; likelyDisambiguatingColumns: string[]; }>>; csvDistinct: z.ZodOptional; distinctCount: z.ZodNumber; truncated: z.ZodBoolean; }, "strip", z.ZodTypeAny, { fileName: string; values: string[]; truncated: boolean; relativePath: string; distinctCount: number; column: string; }, { fileName: string; values: string[]; truncated: boolean; relativePath: string; distinctCount: number; column: string; }>>; csvAggregate: z.ZodOptional, "many">; metrics: z.ZodArray; groupBy: z.ZodOptional>; results: z.ZodArray>, "many">; truncated: z.ZodBoolean; skippedNonNumeric: z.ZodOptional>; }, "strip", z.ZodTypeAny, { fileName: string; results: Record[]; functions: ("min" | "max" | "count" | "sum" | "avg")[]; truncated: boolean; relativePath: string; rowCount: number; metrics: string[]; groupBy?: string[] | undefined; skippedNonNumeric?: Record | undefined; }, { fileName: string; results: Record[]; functions: ("min" | "max" | "count" | "sum" | "avg")[]; truncated: boolean; relativePath: string; rowCount: number; metrics: string[]; groupBy?: string[] | undefined; skippedNonNumeric?: Record | undefined; }>>; error: z.ZodOptional; }, "strip", z.ZodTypeAny, { files: { fileName: string; id: string; mimeType: string; fileSizeBytes: number; relativePath: string; }[]; operation: "search" | "read" | "list" | "csv_query" | "csv_profile" | "csv_distinct" | "csv_aggregate"; search?: { query: string; files: { fileName: string; id: string; relativePath: string; matchCount: number; }[]; mode: "content" | "count" | "files_with_matches"; truncated: boolean; totalMatchingFiles: number; totalMatchingLines: number; matches: { fileName: string; text: string; relativePath: string; fileId: string; lineNumber: number; readRange: { end: number; start: number; }; truncated?: boolean | undefined; }[]; hint?: string | undefined; queries?: string[] | undefined; matchMode?: "any" | "all_on_same_line" | "all_within_lines" | undefined; appliedLimit?: number | undefined; appliedOffset?: number | undefined; nextOffset?: number | undefined; } | undefined; error?: string | undefined; result?: { command: "git_grep" | "cat" | "sed"; exitCode: number | null; stdout: string; stderr: string; truncated: boolean; citation?: { fileName: string; instruction: string; lineRange?: { end: number; start: number; } | undefined; } | undefined; } | undefined; csv?: { fileName: string; columns: string[]; rows: string[][]; truncated: boolean; relativePath: string; rowNumbers: number[]; rowCount: number; records?: { values: Record; rowNumber: number; fileLineNumber: number; }[] | undefined; rowNumberBase?: string | undefined; ambiguity?: { message: string; matchedRows: number; suggestedColumns: string[]; sampleDistinctValues?: Record | undefined; } | undefined; } | undefined; csvProfile?: { fileName: string; columns: string[]; relativePath: string; rowCount: number; sampleRows: Record[]; columnProfiles: { name: string; inferredType: "string" | "number" | "boolean" | "date" | "empty" | "integer"; emptyCount: number; distinctCount?: number | undefined; distinctCountTruncated?: boolean | undefined; sampleValues?: string[] | undefined; }[]; likelyKeyColumns: string[]; likelyDisambiguatingColumns: string[]; } | undefined; csvDistinct?: { fileName: string; values: string[]; truncated: boolean; relativePath: string; distinctCount: number; column: string; } | undefined; csvAggregate?: { fileName: string; results: Record[]; functions: ("min" | "max" | "count" | "sum" | "avg")[]; truncated: boolean; relativePath: string; rowCount: number; metrics: string[]; groupBy?: string[] | undefined; skippedNonNumeric?: Record | undefined; } | undefined; }, { files: { fileName: string; id: string; mimeType: string; fileSizeBytes: number; relativePath: string; }[]; operation: "search" | "read" | "list" | "csv_query" | "csv_profile" | "csv_distinct" | "csv_aggregate"; search?: { query: string; files: { fileName: string; id: string; relativePath: string; matchCount: number; }[]; mode: "content" | "count" | "files_with_matches"; truncated: boolean; totalMatchingFiles: number; totalMatchingLines: number; matches: { fileName: string; text: string; relativePath: string; fileId: string; lineNumber: number; readRange: { end: number; start: number; }; truncated?: boolean | undefined; }[]; hint?: string | undefined; queries?: string[] | undefined; matchMode?: "any" | "all_on_same_line" | "all_within_lines" | undefined; appliedLimit?: number | undefined; appliedOffset?: number | undefined; nextOffset?: number | undefined; } | undefined; error?: string | undefined; result?: { command: "git_grep" | "cat" | "sed"; exitCode: number | null; stdout: string; stderr: string; truncated: boolean; citation?: { fileName: string; instruction: string; lineRange?: { end: number; start: number; } | undefined; } | undefined; } | undefined; csv?: { fileName: string; columns: string[]; rows: string[][]; truncated: boolean; relativePath: string; rowNumbers: number[]; rowCount: number; records?: { values: Record; rowNumber: number; fileLineNumber: number; }[] | undefined; rowNumberBase?: string | undefined; ambiguity?: { message: string; matchedRows: number; suggestedColumns: string[]; sampleDistinctValues?: Record | undefined; } | undefined; } | undefined; csvProfile?: { fileName: string; columns: string[]; relativePath: string; rowCount: number; sampleRows: Record[]; columnProfiles: { name: string; inferredType: "string" | "number" | "boolean" | "date" | "empty" | "integer"; emptyCount: number; distinctCount?: number | undefined; distinctCountTruncated?: boolean | undefined; sampleValues?: string[] | undefined; }[]; likelyKeyColumns: string[]; likelyDisambiguatingColumns: string[]; } | undefined; csvDistinct?: { fileName: string; values: string[]; truncated: boolean; relativePath: string; distinctCount: number; column: string; } | undefined; csvAggregate?: { fileName: string; results: Record[]; functions: ("min" | "max" | "count" | "sum" | "avg")[]; truncated: boolean; relativePath: string; rowCount: number; metrics: string[]; groupBy?: string[] | undefined; skippedNonNumeric?: Record | undefined; } | undefined; }>; export type ParsedSearchKnowledgeInput = z.infer; export type SearchKnowledgeOutput = z.infer; export type CsvQueryInput = z.infer; export type CsvProfileInput = z.infer; export type CsvDistinctInput = z.infer; export type CsvAggregateInput = z.infer; export type CsvFilter = z.infer; export type SearchOutputMode = z.infer; export type SearchMatchMode = z.infer; export type SearchMatchOutput = z.infer; export type SearchResultOutput = z.infer; export type InternalKnowledgeCommandRequest = Extract; export type InternalKnowledgeCommandResult = Omit & { command: InternalKnowledgeCommandRequest['command']; }; export declare function parseSearchKnowledgeInput(input: unknown): ParsedSearchKnowledgeInput; export declare function getSearchKnowledgeOperation(input: unknown): SearchKnowledgeOutput['operation']; export {};