export declare const MAX_FETCH_BYTES = 52428800; export declare const MAX_TEXT_BYTES = 10485760; export declare function findNearestExistingAncestor(targetPath: string): string | null; export declare function validateGraphPath(graphPath: string, base?: string): string; export declare function validateGraphOutputPath(targetPath: string, base?: string, workspaceRoot?: string): string; export declare function validateUrl(url: string): string; export declare function safeFetchResponseWithMetadata(url: string, timeout?: number): Promise<{ response: Response; finalUrl: string; contentType: string; }>; export declare function readResponseBytes(response: Response, url: string, maxBytes: number): Promise; export declare function safeFetchWithMetadata(url: string, maxBytes?: number, timeout?: number): Promise<{ bytes: Uint8Array; finalUrl: string; contentType: string; }>; export declare function safeFetch(url: string, maxBytes?: number, timeout?: number): Promise; export declare function safeFetchText(url: string, maxBytes?: number, timeout?: number): Promise; export declare function safeFetchTextWithMetadata(url: string, maxBytes?: number, timeout?: number): Promise<{ text: string; finalUrl: string; contentType: string; }>; export declare function sanitizeLabel(text: string): string;