import { GraphJson, GraphMeta } from '../gml/types'; /** * Options for fetching a SNAP dataset. */ export interface FetchSnapOptions { /** Metadata to include in output */ meta: Omit; /** Override directed detection */ directed?: boolean; /** Custom fetch function */ fetch?: typeof globalThis.fetch; } /** * Result of fetching a SNAP dataset. */ export interface FetchSnapResult { /** The converted graph */ graph: GraphJson; /** Size of downloaded archive in bytes */ archiveSize: number; /** Size of decompressed content in bytes */ contentSize: number; } /** * Fetch a SNAP dataset from URL, decompress, and convert to JSON. * * @param url - URL to .txt.gz file * @param options - Conversion options * @returns Converted graph and fetch metadata */ export declare const fetchSnapDataset: (url: string, options: FetchSnapOptions) => Promise; //# sourceMappingURL=fetch.d.ts.map