declare type Handler = (url: URL) => string | Promise; export declare class Fetcher { private handlers; constructor(); get knownProtocols(): Array; fetch(url: URL): Promise; register(protocol: string, handler: Handler): this; } export {};