export = DagAPI; declare class DagAPI { /** * Creates a reader part of the DAG API. This allows other APIs that require * reader parts of the DAG API to be instantiated before components required * by writer end are. * * @param {ReaderConfig} config * @returns {DagReader} */ static reader(config: ReaderConfig): DagReader; /** * @param {Object} config * @param {IPLD} config.ipld * @param {Preload} config.preload * @param {Pin} config.pin * @param {GCLock} config.gcLock * @param {DagReader} config.dagReader */ constructor({ ipld, pin, preload, gcLock, dagReader }: { ipld: IPLD; preload: Preload; pin: Pin; gcLock: GCLock; dagReader: DagReader; }); get: (ipfsPath: string | import("cids"), options?: (import("./get").GetOptions & import("../../utils").AbortOptions) | undefined) => Promise; resolve: (ipfsPath: string | import("cids"), options?: (import("./resolve").ResolveOptions & import("../../utils").AbortOptions) | undefined) => Promise; tree: (ipfsPath: import("cids"), options?: (import("./tree").TreeOptions & import("../../utils").AbortOptions) | undefined) => AsyncIterable; put: (dagNode: any, options?: (import("./put").WithCID & import("./put").OtherPutOptions & import("../../utils").AbortOptions) | (import("./put").WithCIDOptions & import("./put").OtherPutOptions & import("../../utils").AbortOptions) | undefined) => Promise; } declare namespace DagAPI { export { DagReader, ReaderConfig, IPLD, Preload, Pin, GCLock, CID, AbortOptions }; } type ReaderConfig = { ipld: IPLD; preload: Preload; }; type DagReader = { get: ReturnType; resolve: ReturnType; tree: ReturnType; }; type IPLD = import("../../interface/ipld").IPLD; type Preload = ((() => void) & { start: () => void; stop: () => void; }) | { (path: string | import("cids")): Promise; start(): void; stop(): void; }; type Pin = import("../pin"); type GCLock = { readLock: () => Promise<() => void>; writeLock: () => Promise<() => void>; }; type CID = import("cids"); type AbortOptions = { /** * - A timeout in ms */ timeout?: number | undefined; /** * - Can be used to cancel any long running requests started as a result of this call */ signal?: AbortSignal | undefined; }; declare const createGet: ({ ipld, preload }: { ipld: import("../../interface/ipld").IPLD; preload: ((() => void) & { start: () => void; stop: () => void; }) | { (path: string | import("cids")): Promise; start(): void; stop(): void; }; }) => (ipfsPath: string | import("cids"), options?: (import("./get").GetOptions & import("../../utils").AbortOptions) | undefined) => Promise; declare const createResolve: ({ ipld, preload }: { ipld: import("../../interface/ipld").IPLD; preload: ((() => void) & { start: () => void; stop: () => void; }) | { (path: string | import("cids")): Promise; start(): void; stop(): void; }; }) => (ipfsPath: string | import("cids"), options?: (import("./resolve").ResolveOptions & import("../../utils").AbortOptions) | undefined) => Promise; declare const createTree: ({ ipld, preload }: { ipld: import("../../interface/ipld").IPLD; preload: ((() => void) & { start: () => void; stop: () => void; }) | { (path: string | import("cids")): Promise; start(): void; stop(): void; }; }) => (ipfsPath: import("cids"), options?: (import("./tree").TreeOptions & import("../../utils").AbortOptions) | undefined) => AsyncIterable; //# sourceMappingURL=index.d.ts.map