/** * Glob tool: find files by name pattern matching. * * Uses fast-glob for pattern matching and sorts results by * modification time (newest first). Respects .gitignore rules. * * Reference: docs/cortex/tools/glob.md */ import { Type, type Static } from 'typebox'; import type { ToolContentDetails } from '../types.js'; export declare const GlobParams: Type.TObject<{ pattern: Type.TString; path: Type.TOptional; }>; export type GlobParamsType = Static; export interface GlobDetails { totalCount: number; truncated: boolean; durationMs: number; searchPath: string; } export interface GlobToolConfig { /** Default search directory when no path param is given. */ defaultCwd: string; /** Whether to respect .gitignore. Default: true. */ respectGitignore?: boolean | undefined; } export declare function createGlobTool(config: GlobToolConfig): { name: string; description: string; parameters: typeof GlobParams; execute: (params: GlobParamsType) => Promise>; }; //# sourceMappingURL=glob.d.ts.map