import { Helia } from '@helia/interface'; import { CID } from 'multiformats'; export declare function ensureLeadingSlash(str: string): string; /** * When migrating to typescript and removing redux-bundler, a lot of old code * had checks like `path ? path : null` which would fire as "false" when the * path was an empty string. This function helps the migration path but should * be removed once all the old code is updated. */ export declare function isFalsy(str: T | null | string | undefined): str is null; export declare function isTruthy(str: T | null | string | undefined): str is string; export declare function addDagNodeToHelia(helia: Helia, codecName: string, node: T, hasherCode?: number): Promise;