@helia/verified-fetch
Version:
A fetch-like API for obtaining verified & trustless IPFS content on the web
19 lines • 791 B
TypeScript
import type { Logger } from '@libp2p/interface';
import type { UnixFSEntry } from 'ipfs-unixfs-exporter';
export interface DirIndexHtmlOptions {
/**
* The URL of the requested resource
*/
gatewayURL: string;
dnsLink?: boolean;
log: Logger;
}
/**
* todo: https://github.com/ipfs/boxo/blob/09b0013e1c3e09468009b02dfc9b2b9041199d5d/gateway/handler_unixfs_dir.go#L200-L208
*
* @see https://github.com/ipfs/boxo/blob/09b0013e1c3e09468009b02dfc9b2b9041199d5d/gateway/assets/directory.html
* @see https://github.com/ipfs/boxo/pull/298
* @see https://github.com/ipfs/kubo/pull/8555
*/
export declare const dirIndexHtml: (dir: UnixFSEntry, items: UnixFSEntry[], { gatewayURL, dnsLink, log }: DirIndexHtmlOptions) => string;
//# sourceMappingURL=dir-index-html.d.ts.map