/** * @ reference parsing — resolves @file, @dir:, @git: tokens in user input. * * Syntax: * @./path/to/file.ts or @file:path/to/file.ts — inject file contents * @dir:src/components/ — inject directory listing * @git:diff | @git:status | @git:log | @git:branch | @git:stash — inject git output * @cortex / @scout / @forge — slot routing (word-only, start of input) * * Disambiguation: @cortex = slot (word-only), @./cortex = file (starts with ./ or ../) */ import type { SlotName } from "../slots/types.js"; export interface ResolvedReference { type: "file" | "directory" | "git" | "image"; path: string; content: string; /** Base64-encoded image data (only for type === 'image') */ imageData?: string; /** MIME type (only for type === 'image') */ mimeType?: string; } export interface ParsedInput { targetSlot?: SlotName; references: ResolvedReference[]; prompt: string; } /** * Parse @ references from user input, resolving files/dirs/git against cwd and contextDirs. */ export declare function parseReferences(input: string, cwd: string, contextDirs?: string[]): Promise; //# sourceMappingURL=references.d.ts.map