From 4fd9b8f2b5a98bfcde57970b48fed2488a80f356 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 17 Sep 2021 21:53:37 +0300 Subject: add in master snapshot of epubjs --- lib/epub.js/types/resources.d.ts | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 lib/epub.js/types/resources.d.ts (limited to 'lib/epub.js/types/resources.d.ts') diff --git a/lib/epub.js/types/resources.d.ts b/lib/epub.js/types/resources.d.ts new file mode 100644 index 0000000..f4bfb37 --- /dev/null +++ b/lib/epub.js/types/resources.d.ts @@ -0,0 +1,33 @@ +import { PackagingManifestObject } from "./packaging"; +import Archive from "./archive"; + +export default class Resources { + constructor(manifest: PackagingManifestObject, options: { + replacements?: string, + archive?: Archive, + resolver?: Function, + request?: Function + }); + + process(manifest: PackagingManifestObject): void; + + createUrl(url: string): Promise; + + replacements(): Promise>; + + relativeTo(absolute: boolean, resolver?: Function): Array; + + get(path: string): string; + + substitute(content: string, url?: string): string; + + destroy(): void; + + private split(): void; + + private splitUrls(): void; + + private replaceCss(archive: Archive, resolver?: Function): Promise>; + + private createCssFile(href: string): Promise; +} -- cgit v1.2.3