export declare const MAX_PASTED_IMAGE_COUNT = 16; export declare const MAX_PASTED_IMAGE_PASTE_CHARACTERS: number; export declare const MAX_PASTED_IMAGE_PATH_CHARACTERS: number; export interface DecodePastedPathOptions { /** Platform whose path and shell semantics apply. Defaults to `process.platform`. */ platform?: NodeJS.Platform; /** Home directory for `~/` expansion. Defaults to `os.homedir()`. */ homedir?: string; } export interface ResolvePastedImagePathOptions extends DecodePastedPathOptions { /** Base directory for relative paths. Defaults to `process.cwd()`. */ cwd?: string; } export type PastedImagePathParseResult = { kind: "paths"; paths: string[]; requiresConfirmation: boolean; } | { kind: "too-many"; maxCandidates: number; }; /** Decode one pasted path candidate without filesystem access. */ export declare function decodePastedPathCandidate(text: string, options?: DecodePastedPathOptions): string | undefined; /** Tokenize a bounded complete path list without filesystem access. */ export declare function decodePastedPathCandidates(text: string, options?: DecodePastedPathOptions, maxCandidates?: number): string[] | undefined; /** Resolve one recognized clipboard-temp image path lexically, before any filesystem access. */ export declare function resolvePastedImagePath(text: string, options?: ResolvePastedImagePathOptions): string | undefined; /** * Parse a complete image path paste without filesystem access. A single path * keeps the clipboard-temp-only policy; multi-path saved-image pastes require * explicit confirmation before any path is opened. */ export declare function parsePastedImagePaths(text: string, options?: ResolvePastedImagePathOptions): PastedImagePathParseResult | undefined; export declare function formatPastedImageReference(placeholder: string, imagePath: string): string; export interface PastedImageReferenceRange { imageIndex: number; startCol: number; endCol: number; } export declare function locatePastedImageReferenceAroundCursor(line: string, cursorCol: number): PastedImageReferenceRange | null;