import { CID } from "multiformats/cid"; export type IPLDKind = CID | string | number | boolean | Uint8Array; export type CodecInput = "raw" | "dag-cbor"; export declare abstract class ContentAddressedStore { abstract save(data: Uint8Array, codec: CodecInput): Promise; abstract load(id: IPLDKind, offset?: number | null, length?: number | null, suffix?: number | null): Promise; pin_cid(_id: IPLDKind, _target_rpc: string): Promise; unpin_cid(_id: IPLDKind, _target_rpc: string): Promise; pin_update(_oldId: IPLDKind, _newId: IPLDKind, _target_rpc: string): Promise; pin_ls(_target_rpc: string): Promise>>; } export interface KuboCASOptions { hasher?: string; rpcBaseUrl?: string | null; gatewayBaseUrl?: string | null; concurrency?: number; headers?: Record; auth?: { username: string; password: string; } | null; pinOnAdd?: boolean; chunker?: string; maxRetries?: number; initialDelay?: number; backoffFactor?: number; } export declare class KuboCAS extends ContentAddressedStore { static readonly KUBO_DEFAULT_LOCAL_GATEWAY_BASE_URL = "http://127.0.0.1:8080"; static readonly KUBO_DEFAULT_LOCAL_RPC_BASE_URL = "http://127.0.0.1:5001"; private static readonly DAG_PB_MARKER; private readonly hasher; private readonly rpcUrl; private readonly gatewayBase; private readonly sem; private readonly headers?; private readonly authHeader?; private readonly maxRetries; private readonly initialDelay; private readonly backoffFactor; constructor(opts?: KuboCASOptions); private buildHeaders; private retrying; save(data: Uint8Array, codec: CodecInput): Promise; load(id: IPLDKind, offset?: number | null, length?: number | null, suffix?: number | null): Promise; pin_cid(cid: CID, targetRpc?: string): Promise; unpin_cid(cid: CID, targetRpc?: string): Promise; pin_update(oldId: IPLDKind, newId: IPLDKind, targetRpc?: string): Promise; pin_ls(targetRpc?: string): Promise>>; } //# sourceMappingURL=ipfs-gateway.d.ts.map