summaryrefslogtreecommitdiff
path: root/bin/wiki/ImportarDesdeURL/node_modules/tldts-core/dist/types/src/factory.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'bin/wiki/ImportarDesdeURL/node_modules/tldts-core/dist/types/src/factory.d.ts')
-rw-r--r--bin/wiki/ImportarDesdeURL/node_modules/tldts-core/dist/types/src/factory.d.ts25
1 files changed, 25 insertions, 0 deletions
diff --git a/bin/wiki/ImportarDesdeURL/node_modules/tldts-core/dist/types/src/factory.d.ts b/bin/wiki/ImportarDesdeURL/node_modules/tldts-core/dist/types/src/factory.d.ts
new file mode 100644
index 00000000..be37df86
--- /dev/null
+++ b/bin/wiki/ImportarDesdeURL/node_modules/tldts-core/dist/types/src/factory.d.ts
@@ -0,0 +1,25 @@
+/**
+ * Implement a factory allowing to plug different implementations of suffix
+ * lookup (e.g.: using a trie or the packed hashes datastructures). This is used
+ * and exposed in `tldts.ts` and `tldts-experimental.ts` bundle entrypoints.
+ */
+import { IPublicSuffix, ISuffixLookupOptions } from './lookup/interface';
+import { IOptions } from './options';
+export interface IResult {
+ hostname: string | null;
+ isIp: boolean | null;
+ subdomain: string | null;
+ domain: string | null;
+ publicSuffix: string | null;
+ isIcann: boolean | null;
+ isPrivate: boolean | null;
+}
+export declare const enum FLAG {
+ HOSTNAME = 0,
+ IS_VALID = 1,
+ PUBLIC_SUFFIX = 2,
+ DOMAIN = 3,
+ SUB_DOMAIN = 4,
+ ALL = 5
+}
+export declare function parseImpl(url: string, step: FLAG, suffixLookup: (_1: string, _2: ISuffixLookupOptions, _3: IPublicSuffix) => void, partialOptions?: Partial<IOptions>): IResult;