Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

wikibase-sdk

Package Overview
Dependencies
Maintainers
1
Versions
86
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wikibase-sdk - npm Package Compare versions

Comparing version 10.0.2 to 10.0.3

109

dist/src/helpers/parse_snak.d.ts
import type { TimeInputValue } from './time.js';
import type { DataType } from '../types/claim.js';
import type { SimplifySnakOptions } from '../types/simplify_claims.js';
import type { SnakValue } from '../types/snakvalue.js';
import type { CommonsMediaSnakDataValue, ExternalIdSnakDataValue, GeoShapeSnakDataValue, GlobeCoordinateSnakDataValue, MathSnakDataValue, MonolingualTextSnakDataValue, QuantitySnakDataValue, StringSnakDataValue, TimeSnakDataValue, WikibaseEntityIdSnakDataValue, MusicalNotationSnakDataValue, TabularDataSnakDataValue, UrlSnakDataValue, WikibaseFormSnakDataValue, WikibaseItemSnakDataValue, WikibaseLexemeSnakDataValue, WikibasePropertySnakDataValue, WikibaseSenseSnakDataValue } from '../types/snakvalue.js';
declare function stringValue(datavalue: StringSnakDataValue): string;
declare function monolingualtext(datavalue: MonolingualTextSnakDataValue, options: {
keepRichValues: false;
}): string;
declare function monolingualtext(datavalue: MonolingualTextSnakDataValue, options: {
keepRichValues: true;
}): MonolingualTextSnakDataValue['value'];
declare function entity(datavalue: WikibaseEntityIdSnakDataValue, options: SimplifySnakOptions): string;
interface ParsedQuantitySnakValue {
amount: number;
unit: string;
upperBound?: number;
lowerBound?: number;
}
declare function quantity(datavalue: QuantitySnakDataValue, options: {
keepRichValues: false;
}): number;
declare function quantity(datavalue: QuantitySnakDataValue, options: {
keepRichValues: true;
}): ParsedQuantitySnakValue;
type LatLng = [number, number];
declare function coordinate(datavalue: GlobeCoordinateSnakDataValue, options: {
keepRichValues: false;
}): LatLng;
declare function coordinate(datavalue: GlobeCoordinateSnakDataValue, options: {
keepRichValues: true;
}): GlobeCoordinateSnakDataValue['value'];
type TimeStringSnakValue = TimeSnakDataValue['value'];
type TimeNumberSnakValue = Pick<TimeStringSnakValue, 'timezone' | 'before' | 'after' | 'precision' | 'calendarmodel'> & {
time: number;
};
declare function time(datavalue: TimeSnakDataValue, options: {
keepRichValues: false;
timeConverter: 'iso' | 'simple-day' | 'none';
}): string;
declare function time(datavalue: TimeSnakDataValue, options: {
keepRichValues: false;
timeConverter: 'epoch';
}): number;
declare function time(datavalue: TimeSnakDataValue, options: {
keepRichValues: true;
timeConverter: 'iso' | 'simple-day' | 'none';
}): TimeStringSnakValue;
declare function time(datavalue: TimeSnakDataValue, options: {
keepRichValues: true;
timeConverter: 'epoch';
}): TimeNumberSnakValue;
export declare const timeConverters: {
readonly iso: (value: TimeInputValue) => string;
readonly epoch: (value: TimeInputValue) => string | number;
readonly epoch: (wikibaseTime: TimeInputValue) => number;
readonly 'simple-day': (value: TimeInputValue) => string;
readonly none: (wikibaseTime: TimeInputValue) => string;
};
type DataValueByDataType = {
'commonsMedia': CommonsMediaSnakDataValue;
'external-id': ExternalIdSnakDataValue;
'geo-shape': GeoShapeSnakDataValue;
'globe-coordinate': GlobeCoordinateSnakDataValue;
'math': MathSnakDataValue;
monolingualtext: MonolingualTextSnakDataValue;
'musical-notation': MusicalNotationSnakDataValue;
quantity: QuantitySnakDataValue;
'string': StringSnakDataValue;
'tabular-data': TabularDataSnakDataValue;
'time': TimeSnakDataValue;
'url': UrlSnakDataValue;
'wikibase-form': WikibaseFormSnakDataValue;
'wikibase-item': WikibaseItemSnakDataValue;
'wikibase-lexeme': WikibaseLexemeSnakDataValue;
'wikibase-property': WikibasePropertySnakDataValue;
'wikibase-sense': WikibaseSenseSnakDataValue;
};
export declare const parsers: {
readonly commonsMedia: (datavalue: any) => any;
readonly 'external-id': (datavalue: any) => any;
readonly 'geo-shape': (datavalue: any) => any;
readonly 'globe-coordinate': (datavalue: any, options: any) => any;
readonly math: (datavalue: any) => any;
readonly monolingualtext: (datavalue: any, options: any) => any;
readonly 'musical-notation': (datavalue: any) => any;
readonly quantity: (datavalue: any, options: any) => any;
readonly string: (datavalue: any) => any;
readonly 'tabular-data': (datavalue: any) => any;
readonly time: (datavalue: any, options: any) => any;
readonly url: (datavalue: any) => any;
readonly 'wikibase-entityid': (datavalue: any, options: any) => any;
readonly 'wikibase-form': (datavalue: any, options: any) => any;
readonly 'wikibase-item': (datavalue: any, options: any) => any;
readonly 'wikibase-lexeme': (datavalue: any, options: any) => any;
readonly 'wikibase-property': (datavalue: any, options: any) => any;
readonly 'wikibase-sense': (datavalue: any, options: any) => any;
readonly commonsMedia: typeof stringValue;
readonly 'external-id': typeof stringValue;
readonly 'geo-shape': typeof stringValue;
readonly 'globe-coordinate': typeof coordinate;
readonly math: typeof stringValue;
readonly monolingualtext: typeof monolingualtext;
readonly 'musical-notation': typeof stringValue;
readonly quantity: typeof quantity;
readonly string: typeof stringValue;
readonly 'tabular-data': typeof stringValue;
readonly time: typeof time;
readonly url: typeof stringValue;
readonly 'wikibase-form': typeof entity;
readonly 'wikibase-item': typeof entity;
readonly 'wikibase-lexeme': typeof entity;
readonly 'wikibase-property': typeof entity;
readonly 'wikibase-sense': typeof entity;
};
export declare function parseSnak(datatype: DataType | undefined, datavalue: SnakValue, options: SimplifySnakOptions): any;
export declare function parseSnak<T extends keyof DataValueByDataType>(datatype: T, datavalue: DataValueByDataType[T], options: SimplifySnakOptions): ReturnType<typeof parsers[T]>;
export {};
//# sourceMappingURL=parse_snak.d.ts.map
import { wikibaseTimeToEpochTime, wikibaseTimeToISOString, wikibaseTimeToSimpleDay } from './time.js';
const simple = datavalue => datavalue.value;
const monolingualtext = (datavalue, options) => {
function stringValue(datavalue) {
return datavalue.value;
}
function monolingualtext(datavalue, options) {
return options.keepRichValues ? datavalue.value : datavalue.value.text;
};
const entity = (datavalue, options) => prefixedId(datavalue, options.entityPrefix);
}
function entity(datavalue, options) {
const { entityPrefix: prefix } = options;
const { value } = datavalue;
let id;
if (value.id) {
id = value.id;
}
else {
// Legacy
const letter = entityLetter[value['entity-type']];
id = `${letter}${value['numeric-id']}`;
}
return typeof prefix === 'string' ? `${prefix}:${id}` : id;
}
const entityLetter = {

@@ -11,10 +26,7 @@ item: 'Q',

property: 'P',
form: 'F',
sense: 'S',
};
const prefixedId = (datavalue, prefix) => {
function quantity(datavalue, options) {
const { value } = datavalue;
const id = value.id || entityLetter[value['entity-type']] + value['numeric-id'];
return typeof prefix === 'string' ? `${prefix}:${id}` : id;
};
const quantity = (datavalue, options) => {
const { value } = datavalue;
const amount = parseFloat(value.amount);

@@ -36,4 +48,4 @@ if (options.keepRichValues) {

}
};
const coordinate = (datavalue, options) => {
}
function coordinate(datavalue, options) {
if (options.keepRichValues) {

@@ -45,4 +57,4 @@ return datavalue.value;

}
};
const time = (datavalue, options) => {
}
function time(datavalue, options) {
let timeValue;

@@ -62,9 +74,3 @@ if (typeof options.timeConverter === 'function') {

}
};
const getTimeConverter = (key = 'iso') => {
const converter = timeConverters[key];
if (!converter)
throw new Error(`invalid converter key: ${JSON.stringify(key).substring(0, 100)}`);
return converter;
};
}
// Each time converter should be able to accept 2 keys of arguments:

@@ -79,16 +85,21 @@ // - either datavalue.value objects (prefered as it gives access to the precision)

};
function getTimeConverter(key = 'iso') {
const converter = timeConverters[key];
if (!converter)
throw new Error(`invalid converter key: ${JSON.stringify(key).substring(0, 100)}`);
return converter;
}
export const parsers = {
commonsMedia: simple,
'external-id': simple,
'geo-shape': simple,
commonsMedia: stringValue,
'external-id': stringValue,
'geo-shape': stringValue,
'globe-coordinate': coordinate,
math: simple,
math: stringValue,
monolingualtext,
'musical-notation': simple,
'musical-notation': stringValue,
quantity,
string: simple,
'tabular-data': simple,
string: stringValue,
'tabular-data': stringValue,
time,
url: simple,
'wikibase-entityid': entity,
url: stringValue,
'wikibase-form': entity,

@@ -100,16 +111,18 @@ 'wikibase-item': entity,

};
const normalizeDatatype = datatype => datatype.toLowerCase().replace(/[\s-]/g, '');
const normalizedParsers = {};
for (const [datatype, parser] of Object.entries(parsers)) {
normalizedParsers[normalizeDatatype(datatype)] = parser;
}
const legacyParsers = {
'musical notation': parsers['musical-notation'],
// Known case: mediainfo won't have datatype="globe-coordinate", but datavalue.type="globecoordinate"
globecoordinate: parsers['globe-coordinate'],
};
export function parseSnak(datatype, datavalue, options) {
// @ts-expect-error Known case of missing datatype: form.claims, sense.claims, mediainfo.statements
datatype = datatype || datavalue.type;
// Known case requiring normalization
// - legacy "musical notation" datatype
// - mediainfo won't have datatype="globe-coordinate", but datavalue.type="globecoordinate"
const parser = normalizedParsers[normalizeDatatype(datatype)];
let parser;
if (datatype) {
// @ts-expect-error legacyParsers datatypes aren't in DataValueByDataType
parser = parsers[datatype] || legacyParsers[datatype];
}
else {
parser = parsers[datavalue.type];
}
if (!parser) {
throw new Error(`${normalizeDatatype(datatype)} claim parser isn't implemented. Please report to https://github.com/maxlath/wikibase-sdk/issues`);
throw new Error(`${datatype} claim parser isn't implemented. Please report to https://github.com/maxlath/wikibase-sdk/issues`);
}

@@ -116,0 +129,0 @@ return parser(datavalue, options);

@@ -1,2 +0,2 @@

import { isPlainObject, uniq } from '../utils/utils.js';
import { isPlainObject, typedEntries, uniq } from '../utils/utils.js';
import { parseSnak } from './parse_snak.js';

@@ -74,3 +74,11 @@ import { truthyPropertyClaims, nonDeprecatedPropertyClaims } from './rank.js';

export function simplifyClaims(claims, options = {}) {
return applyObjectSimplification(claims, simplifyPropertyClaims, options);
const { propertyPrefix } = options;
const simplified = {};
for (let [propertyId, propertyArray] of typedEntries(claims)) {
if (propertyPrefix) {
propertyId = propertyPrefix + ':' + propertyId;
}
simplified[propertyId] = simplifyPropertyClaims(propertyArray, options);
}
return simplified;
}

@@ -90,26 +98,32 @@ export function simplifyPropertyClaims(propertyClaims, options = {}) {

}
return applyArraySimplification(propertyClaims, simplifyClaim, options);
const simplifiedArray = propertyClaims
.map(claim => simplifyClaim(claim, options))
// Filter-out novalue and somevalue claims,
// unless a novalueValue or a somevalueValue is passed in options
// Considers null as defined
.filter(obj => obj !== undefined);
// Deduplicate values unless we return a rich value object
if (simplifiedArray[0] && typeof simplifiedArray[0] !== 'object') {
return uniq(simplifiedArray);
}
else {
return simplifiedArray;
}
}
export function simplifySnaks(snaks = {}, options = {}) {
return applyObjectSimplification(snaks, simplifyPropertySnaks, options);
}
export function simplifyPropertySnaks(propertySnaks, options = {}) {
if (propertySnaks == null || propertySnaks.length === 0)
return [];
return applyArraySimplification(propertySnaks, simplifySnak, options);
}
function applyObjectSimplification(obj, simplifyFn, options) {
const { propertyPrefix } = options;
const simplified = {};
for (let [propertyId, propertyArray] of Object.entries(obj)) {
for (let [propertyId, propertyArray] of typedEntries(snaks)) {
if (propertyPrefix) {
propertyId = propertyPrefix + ':' + propertyId;
}
simplified[propertyId] = simplifyFn(propertyArray, options);
simplified[propertyId] = simplifyPropertySnaks(propertyArray, options);
}
return simplified;
}
function applyArraySimplification(array, simplifyFn, options) {
const simplifiedArray = array
.map(claimOrSnak => simplifyFn(claimOrSnak, options))
export function simplifyPropertySnaks(propertySnaks, options = {}) {
if (propertySnaks == null || propertySnaks.length === 0)
return [];
const simplifiedArray = propertySnaks
.map(snak => simplifySnak(snak, options))
// Filter-out novalue and somevalue claims,

@@ -116,0 +130,0 @@ // unless a novalueValue or a somevalueValue is passed in options

@@ -1,4 +0,27 @@

import type { SimplifySitelinkOptions } from '../types/options.js';
import type { SimplifiedSitelinks, Sitelinks } from '../types/sitelinks.js';
export declare function simplifySitelinks(sitelinks: Sitelinks, options?: SimplifySitelinkOptions): SimplifiedSitelinks;
import type { SimplifiedSitelinks, SimplifiedSitelinksWithBadges, SimplifiedSitelinksWithBadgesAndUrls, SimplifiedSitelinksWithUrls, Sitelinks } from '../types/sitelinks.js';
type SimplifySitelinksOptionsOn = {
addUrl: true;
} & ({
keepBadges: true;
} | {
keepAll: true;
});
type SimplifySitelinksOptionsOff = undefined | {
addUrl: false | undefined;
} & ({
keepBadges: false | undefined;
} | {
keepAll: false | undefined;
});
export declare function simplifySitelinks(sitelinks: Sitelinks, options: {
addUrl: true;
}): SimplifiedSitelinksWithUrls;
export declare function simplifySitelinks(sitelinks: Sitelinks, options: {
keepBadges: true;
} | {
keepAll: true;
}): SimplifiedSitelinksWithBadges;
export declare function simplifySitelinks(sitelinks: Sitelinks, options: SimplifySitelinksOptionsOn): SimplifiedSitelinksWithBadgesAndUrls;
export declare function simplifySitelinks(sitelinks: Sitelinks, options?: SimplifySitelinksOptionsOff): SimplifiedSitelinks;
export {};
//# sourceMappingURL=simplify_sitelinks.d.ts.map

@@ -0,1 +1,2 @@

import { typedKeys } from '../utils/utils.js';
import { getSitelinkUrl } from './sitelinks.js';

@@ -5,3 +6,3 @@ export function simplifySitelinks(sitelinks, options = {}) {

keepBadges = keepBadges || keepAll;
return Object.keys(sitelinks).reduce(aggregateValues({
return typedKeys(sitelinks).reduce(aggregateValues({
sitelinks,

@@ -8,0 +9,0 @@ addUrl,

@@ -19,5 +19,5 @@ import { specialSites, type Site } from './wikimedia_constants.js';

export declare function getSitelinkData(site: Site | Url): SitelinkData;
export declare const isSite: (site: string) => site is "aawiki" | "aawikibooks" | "aawiktionary" | "abwiki" | "abwiktionary" | "acewiki" | "adywiki" | "afwiki" | "afwikibooks" | "afwikiquote" | "afwiktionary" | "akwiki" | "akwikibooks" | "akwiktionary" | "alswiki" | "alswikibooks" | "alswikiquote" | "alswiktionary" | "altwiki" | "amiwiki" | "amwiki" | "amwikiquote" | "amwiktionary" | "angwiki" | "angwikibooks" | "angwikiquote" | "angwikisource" | "angwiktionary" | "anpwiki" | "anwiki" | "anwiktionary" | "arcwiki" | "arwiki" | "arwikibooks" | "arwikinews" | "arwikiquote" | "arwikisource" | "arwikiversity" | "arwiktionary" | "arywiki" | "arzwiki" | "astwiki" | "astwikibooks" | "astwikiquote" | "astwiktionary" | "aswiki" | "aswikibooks" | "aswikiquote" | "aswikisource" | "aswiktionary" | "atjwiki" | "avkwiki" | "avwiki" | "avwiktionary" | "awawiki" | "aywiki" | "aywikibooks" | "aywiktionary" | "azbwiki" | "azwiki" | "azwikibooks" | "azwikiquote" | "azwikisource" | "azwiktionary" | "banwiki" | "banwikisource" | "barwiki" | "bat_smgwiki" | "bawiki" | "bawikibooks" | "bbcwiki" | "bclwiki" | "bclwikiquote" | "bclwiktionary" | "be_x_oldwiki" | "bewiki" | "bewikibooks" | "bewikiquote" | "bewikisource" | "bewiktionary" | "bgwiki" | "bgwikibooks" | "bgwikinews" | "bgwikiquote" | "bgwikisource" | "bgwiktionary" | "bhwiki" | "bhwiktionary" | "biwiki" | "biwikibooks" | "biwiktionary" | "bjnwiki" | "bjnwikiquote" | "bjnwiktionary" | "blkwiki" | "blkwiktionary" | "bmwiki" | "bmwikibooks" | "bmwikiquote" | "bmwiktionary" | "bnwiki" | "bnwikibooks" | "bnwikiquote" | "bnwikisource" | "bnwikivoyage" | "bnwiktionary" | "bowiki" | "bowikibooks" | "bowiktionary" | "bpywiki" | "brwiki" | "brwikiquote" | "brwikisource" | "brwiktionary" | "bswiki" | "bswikibooks" | "bswikinews" | "bswikiquote" | "bswikisource" | "bswiktionary" | "btmwiktionary" | "bugwiki" | "bxrwiki" | "cawiki" | "cawikibooks" | "cawikinews" | "cawikiquote" | "cawikisource" | "cawiktionary" | "cbk_zamwiki" | "cdowiki" | "cebwiki" | "cewiki" | "chowiki" | "chrwiki" | "chrwiktionary" | "chwiki" | "chwikibooks" | "chwiktionary" | "chywiki" | "ckbwiki" | "ckbwiktionary" | "commonswiki" | "cowiki" | "cowikibooks" | "cowikiquote" | "cowiktionary" | "crhwiki" | "crwiki" | "crwikiquote" | "crwiktionary" | "csbwiki" | "csbwiktionary" | "cswiki" | "cswikibooks" | "cswikinews" | "cswikiquote" | "cswikisource" | "cswikiversity" | "cswiktionary" | "cuwiki" | "cvwiki" | "cvwikibooks" | "cywiki" | "cywikibooks" | "cywikiquote" | "cywikisource" | "cywiktionary" | "dagwiki" | "dawiki" | "dawikibooks" | "dawikiquote" | "dawikisource" | "dawiktionary" | "dewiki" | "dewikibooks" | "dewikinews" | "dewikiquote" | "dewikisource" | "dewikiversity" | "dewikivoyage" | "dewiktionary" | "dgawiki" | "dinwiki" | "diqwiki" | "diqwiktionary" | "dsbwiki" | "dtywiki" | "dvwiki" | "dvwiktionary" | "dzwiki" | "dzwiktionary" | "eewiki" | "elwiki" | "elwikibooks" | "elwikinews" | "elwikiquote" | "elwikisource" | "elwikiversity" | "elwikivoyage" | "elwiktionary" | "emlwiki" | "enwiki" | "enwikibooks" | "enwikinews" | "enwikiquote" | "enwikisource" | "enwikiversity" | "enwikivoyage" | "enwiktionary" | "eowiki" | "eowikibooks" | "eowikinews" | "eowikiquote" | "eowikisource" | "eowikivoyage" | "eowiktionary" | "eswiki" | "eswikibooks" | "eswikinews" | "eswikiquote" | "eswikisource" | "eswikiversity" | "eswikivoyage" | "eswiktionary" | "etwiki" | "etwikibooks" | "etwikiquote" | "etwikisource" | "etwiktionary" | "euwiki" | "euwikibooks" | "euwikiquote" | "euwikisource" | "euwiktionary" | "extwiki" | "fatwiki" | "fawiki" | "fawikibooks" | "fawikinews" | "fawikiquote" | "fawikisource" | "fawikivoyage" | "fawiktionary" | "ffwiki" | "fiu_vrowiki" | "fiwiki" | "fiwikibooks" | "fiwikinews" | "fiwikiquote" | "fiwikisource" | "fiwikiversity" | "fiwikivoyage" | "fiwiktionary" | "fjwiki" | "fjwiktionary" | "fonwiki" | "foundationwiki" | "fowiki" | "fowikisource" | "fowiktionary" | "frpwiki" | "frrwiki" | "frwiki" | "frwikibooks" | "frwikinews" | "frwikiquote" | "frwikisource" | "frwikiversity" | "frwikivoyage" | "frwiktionary" | "furwiki" | "fywiki" | "fywikibooks" | "fywiktionary" | "gagwiki" | "ganwiki" | "gawiki" | "gawikibooks" | "gawikiquote" | "gawiktionary" | "gcrwiki" | "gdwiki" | "gdwiktionary" | "glkwiki" | "glwiki" | "glwikibooks" | "glwikiquote" | "glwikisource" | "glwiktionary" | "gnwiki" | "gnwikibooks" | "gnwiktionary" | "gomwiki" | "gomwiktionary" | "gorwiki" | "gorwiktionary" | "gotwiki" | "gotwikibooks" | "gpewiki" | "gucwiki" | "gurwiki" | "guwiki" | "guwikibooks" | "guwikiquote" | "guwikisource" | "guwiktionary" | "guwwiki" | "guwwikinews" | "guwwikiquote" | "guwwiktionary" | "gvwiki" | "gvwiktionary" | "hakwiki" | "hawiki" | "hawiktionary" | "hawwiki" | "hewiki" | "hewikibooks" | "hewikinews" | "hewikiquote" | "hewikisource" | "hewikivoyage" | "hewiktionary" | "hifwiki" | "hifwiktionary" | "hiwiki" | "hiwikibooks" | "hiwikiquote" | "hiwikisource" | "hiwikiversity" | "hiwikivoyage" | "hiwiktionary" | "howiki" | "hrwiki" | "hrwikibooks" | "hrwikiquote" | "hrwikisource" | "hrwiktionary" | "hsbwiki" | "hsbwiktionary" | "htwiki" | "htwikisource" | "huwiki" | "huwikibooks" | "huwikinews" | "huwikiquote" | "huwikisource" | "huwiktionary" | "hywiki" | "hywikibooks" | "hywikiquote" | "hywikisource" | "hywiktionary" | "hywwiki" | "hzwiki" | "iawiki" | "iawikibooks" | "iawiktionary" | "idwiki" | "idwikibooks" | "idwikiquote" | "idwikisource" | "idwiktionary" | "iewiki" | "iewikibooks" | "iewiktionary" | "igwiki" | "igwikiquote" | "igwiktionary" | "iiwiki" | "ikwiki" | "ikwiktionary" | "ilowiki" | "inhwiki" | "iowiki" | "iowiktionary" | "iswiki" | "iswikibooks" | "iswikiquote" | "iswikisource" | "iswiktionary" | "itwiki" | "itwikibooks" | "itwikinews" | "itwikiquote" | "itwikisource" | "itwikiversity" | "itwikivoyage" | "itwiktionary" | "iuwiki" | "iuwiktionary" | "jamwiki" | "jawiki" | "jawikibooks" | "jawikinews" | "jawikiquote" | "jawikisource" | "jawikiversity" | "jawikivoyage" | "jawiktionary" | "jbowiki" | "jbowiktionary" | "jvwiki" | "jvwikisource" | "jvwiktionary" | "kaawiki" | "kabwiki" | "kawiki" | "kawikibooks" | "kawikiquote" | "kawiktionary" | "kbdwiki" | "kbdwiktionary" | "kbpwiki" | "kcgwiki" | "kcgwiktionary" | "kgwiki" | "kiwiki" | "kjwiki" | "kkwiki" | "kkwikibooks" | "kkwikiquote" | "kkwiktionary" | "klwiki" | "klwiktionary" | "kmwiki" | "kmwikibooks" | "kmwiktionary" | "knwiki" | "knwikibooks" | "knwikiquote" | "knwikisource" | "knwiktionary" | "koiwiki" | "kowiki" | "kowikibooks" | "kowikinews" | "kowikiquote" | "kowikisource" | "kowikiversity" | "kowiktionary" | "krcwiki" | "krwiki" | "krwikiquote" | "kshwiki" | "kswiki" | "kswikibooks" | "kswikiquote" | "kswiktionary" | "kuwiki" | "kuwikibooks" | "kuwikiquote" | "kuwiktionary" | "kvwiki" | "kwwiki" | "kwwikiquote" | "kwwiktionary" | "kywiki" | "kywikibooks" | "kywikiquote" | "kywiktionary" | "ladwiki" | "lawiki" | "lawikibooks" | "lawikiquote" | "lawikisource" | "lawiktionary" | "lbewiki" | "lbwiki" | "lbwikibooks" | "lbwikiquote" | "lbwiktionary" | "lezwiki" | "lfnwiki" | "lgwiki" | "lijwiki" | "lijwikisource" | "liwiki" | "liwikibooks" | "liwikinews" | "liwikiquote" | "liwikisource" | "liwiktionary" | "lldwiki" | "lmowiki" | "lmowiktionary" | "lnwiki" | "lnwikibooks" | "lnwiktionary" | "lowiki" | "lowiktionary" | "lrcwiki" | "ltgwiki" | "ltwiki" | "ltwikibooks" | "ltwikiquote" | "ltwikisource" | "ltwiktionary" | "lvwiki" | "lvwikibooks" | "lvwiktionary" | "madwiki" | "maiwiki" | "map_bmswiki" | "mdfwiki" | "mediawikiwiki" | "metawiki" | "mgwiki" | "mgwikibooks" | "mgwiktionary" | "mhrwiki" | "mhwiki" | "mhwiktionary" | "minwiki" | "minwiktionary" | "miwiki" | "miwikibooks" | "miwiktionary" | "mkwiki" | "mkwikibooks" | "mkwikisource" | "mkwiktionary" | "mlwiki" | "mlwikibooks" | "mlwikiquote" | "mlwikisource" | "mlwiktionary" | "mniwiki" | "mniwiktionary" | "mnwiki" | "mnwikibooks" | "mnwiktionary" | "mnwwiki" | "mnwwiktionary" | "mowiki" | "mowiktionary" | "mrjwiki" | "mrwiki" | "mrwikibooks" | "mrwikiquote" | "mrwikisource" | "mrwiktionary" | "mswiki" | "mswikibooks" | "mswiktionary" | "mtwiki" | "mtwiktionary" | "muswiki" | "mwlwiki" | "myvwiki" | "mywiki" | "mywikibooks" | "mywiktionary" | "mznwiki" | "nahwiki" | "nahwikibooks" | "nahwiktionary" | "napwiki" | "napwikisource" | "nawiki" | "nawikibooks" | "nawikiquote" | "nawiktionary" | "nds_nlwiki" | "ndswiki" | "ndswikibooks" | "ndswikiquote" | "ndswiktionary" | "newiki" | "newikibooks" | "newiktionary" | "newwiki" | "ngwiki" | "niawiki" | "niawiktionary" | "nlwiki" | "nlwikibooks" | "nlwikinews" | "nlwikiquote" | "nlwikisource" | "nlwikivoyage" | "nlwiktionary" | "nnwiki" | "nnwikiquote" | "nnwiktionary" | "novwiki" | "nowiki" | "nowikibooks" | "nowikinews" | "nowikiquote" | "nowikisource" | "nowiktionary" | "nqowiki" | "nrmwiki" | "nsowiki" | "nvwiki" | "nywiki" | "ocwiki" | "ocwikibooks" | "ocwiktionary" | "olowiki" | "omwiki" | "omwiktionary" | "orwiki" | "orwikisource" | "orwiktionary" | "oswiki" | "outreachwiki" | "pagwiki" | "pamwiki" | "papwiki" | "pawiki" | "pawikibooks" | "pawikisource" | "pawiktionary" | "pcdwiki" | "pcmwiki" | "pdcwiki" | "pflwiki" | "pihwiki" | "piwiki" | "piwiktionary" | "plwiki" | "plwikibooks" | "plwikinews" | "plwikiquote" | "plwikisource" | "plwikivoyage" | "plwiktionary" | "pmswiki" | "pmswikisource" | "pnbwiki" | "pnbwiktionary" | "pntwiki" | "pswiki" | "pswikibooks" | "pswikivoyage" | "pswiktionary" | "ptwiki" | "ptwikibooks" | "ptwikinews" | "ptwikiquote" | "ptwikisource" | "ptwikiversity" | "ptwikivoyage" | "ptwiktionary" | "pwnwiki" | "quwiki" | "quwikibooks" | "quwikiquote" | "quwiktionary" | "rmwiki" | "rmwikibooks" | "rmwiktionary" | "rmywiki" | "rnwiki" | "rnwiktionary" | "roa_rupwiki" | "roa_rupwiktionary" | "roa_tarawiki" | "rowiki" | "rowikibooks" | "rowikinews" | "rowikiquote" | "rowikisource" | "rowikivoyage" | "rowiktionary" | "ruewiki" | "ruwiki" | "ruwikibooks" | "ruwikinews" | "ruwikiquote" | "ruwikisource" | "ruwikiversity" | "ruwikivoyage" | "ruwiktionary" | "rwwiki" | "rwwiktionary" | "sahwiki" | "sahwikiquote" | "sahwikisource" | "satwiki" | "sawiki" | "sawikibooks" | "sawikiquote" | "sawikisource" | "sawiktionary" | "scnwiki" | "scnwiktionary" | "scowiki" | "scwiki" | "scwiktionary" | "sdwiki" | "sdwikinews" | "sdwiktionary" | "sewiki" | "sewikibooks" | "sgwiki" | "sgwiktionary" | "shiwiki" | "shnwiki" | "shnwikibooks" | "shnwikivoyage" | "shnwiktionary" | "shwiki" | "shwiktionary" | "shywiktionary" | "simplewiki" | "simplewikibooks" | "simplewikiquote" | "simplewiktionary" | "siwiki" | "siwikibooks" | "siwiktionary" | "skrwiki" | "skrwiktionary" | "skwiki" | "skwikibooks" | "skwikiquote" | "skwikisource" | "skwiktionary" | "slwiki" | "slwikibooks" | "slwikiquote" | "slwikisource" | "slwikiversity" | "slwiktionary" | "smnwiki" | "smwiki" | "smwiktionary" | "snwiki" | "snwiktionary" | "sourceswiki" | "sowiki" | "sowiktionary" | "specieswiki" | "sqwiki" | "sqwikibooks" | "sqwikinews" | "sqwikiquote" | "sqwiktionary" | "srnwiki" | "srwiki" | "srwikibooks" | "srwikinews" | "srwikiquote" | "srwikisource" | "srwiktionary" | "sswiki" | "sswiktionary" | "stqwiki" | "stwiki" | "stwiktionary" | "suwiki" | "suwikibooks" | "suwikiquote" | "suwikisource" | "suwiktionary" | "svwiki" | "svwikibooks" | "svwikinews" | "svwikiquote" | "svwikisource" | "svwikiversity" | "svwikivoyage" | "svwiktionary" | "swwiki" | "swwikibooks" | "swwiktionary" | "szlwiki" | "szywiki" | "tawiki" | "tawikibooks" | "tawikinews" | "tawikiquote" | "tawikisource" | "tawiktionary" | "taywiki" | "tcywiki" | "tetwiki" | "tewiki" | "tewikibooks" | "tewikiquote" | "tewikisource" | "tewiktionary" | "tgwiki" | "tgwikibooks" | "tgwiktionary" | "thwiki" | "thwikibooks" | "thwikinews" | "thwikiquote" | "thwikisource" | "thwiktionary" | "tiwiki" | "tiwiktionary" | "tkwiki" | "tkwikibooks" | "tkwikiquote" | "tkwiktionary" | "tlwiki" | "tlwikibooks" | "tlwikiquote" | "tlwiktionary" | "tlywiki" | "tnwiki" | "tnwiktionary" | "towiki" | "towiktionary" | "tpiwiki" | "tpiwiktionary" | "trvwiki" | "trwiki" | "trwikibooks" | "trwikinews" | "trwikiquote" | "trwikisource" | "trwikivoyage" | "trwiktionary" | "tswiki" | "tswiktionary" | "ttwiki" | "ttwikibooks" | "ttwikiquote" | "ttwiktionary" | "tumwiki" | "twwiki" | "twwiktionary" | "tyvwiki" | "tywiki" | "udmwiki" | "ugwiki" | "ugwikibooks" | "ugwikiquote" | "ugwiktionary" | "ukwiki" | "ukwikibooks" | "ukwikinews" | "ukwikiquote" | "ukwikisource" | "ukwikivoyage" | "ukwiktionary" | "urwiki" | "urwikibooks" | "urwikiquote" | "urwiktionary" | "uzwiki" | "uzwikibooks" | "uzwikiquote" | "uzwiktionary" | "vecwiki" | "vecwikisource" | "vecwiktionary" | "vepwiki" | "vewiki" | "viwiki" | "viwikibooks" | "viwikiquote" | "viwikisource" | "viwikivoyage" | "viwiktionary" | "vlswiki" | "vowiki" | "vowikibooks" | "vowikiquote" | "vowiktionary" | "warwiki" | "wawiki" | "wawikibooks" | "wawikisource" | "wawiktionary" | "wikidatawiki" | "wikifunctionswiki" | "wikimaniawiki" | "wowiki" | "wowikiquote" | "wowiktionary" | "wuuwiki" | "xalwiki" | "xhwiki" | "xhwikibooks" | "xhwiktionary" | "xmfwiki" | "yiwiki" | "yiwikisource" | "yiwiktionary" | "yowiki" | "yowikibooks" | "yowiktionary" | "yuewiktionary" | "zawiki" | "zawikibooks" | "zawikiquote" | "zawiktionary" | "zeawiki" | "zghwiki" | "zh_classicalwiki" | "zh_min_nanwiki" | "zh_min_nanwikibooks" | "zh_min_nanwikiquote" | "zh_min_nanwikisource" | "zh_min_nanwiktionary" | "zh_yuewiki" | "zhwiki" | "zhwikibooks" | "zhwikinews" | "zhwikiquote" | "zhwikisource" | "zhwikiversity" | "zhwikivoyage" | "zhwiktionary" | "zuwiki" | "zuwikibooks" | "zuwiktionary";
export declare const isSite: (site: string) => site is Site;
/** @deprecated use isSite */
export declare const isSitelinkKey: (site: string) => site is "aawiki" | "aawikibooks" | "aawiktionary" | "abwiki" | "abwiktionary" | "acewiki" | "adywiki" | "afwiki" | "afwikibooks" | "afwikiquote" | "afwiktionary" | "akwiki" | "akwikibooks" | "akwiktionary" | "alswiki" | "alswikibooks" | "alswikiquote" | "alswiktionary" | "altwiki" | "amiwiki" | "amwiki" | "amwikiquote" | "amwiktionary" | "angwiki" | "angwikibooks" | "angwikiquote" | "angwikisource" | "angwiktionary" | "anpwiki" | "anwiki" | "anwiktionary" | "arcwiki" | "arwiki" | "arwikibooks" | "arwikinews" | "arwikiquote" | "arwikisource" | "arwikiversity" | "arwiktionary" | "arywiki" | "arzwiki" | "astwiki" | "astwikibooks" | "astwikiquote" | "astwiktionary" | "aswiki" | "aswikibooks" | "aswikiquote" | "aswikisource" | "aswiktionary" | "atjwiki" | "avkwiki" | "avwiki" | "avwiktionary" | "awawiki" | "aywiki" | "aywikibooks" | "aywiktionary" | "azbwiki" | "azwiki" | "azwikibooks" | "azwikiquote" | "azwikisource" | "azwiktionary" | "banwiki" | "banwikisource" | "barwiki" | "bat_smgwiki" | "bawiki" | "bawikibooks" | "bbcwiki" | "bclwiki" | "bclwikiquote" | "bclwiktionary" | "be_x_oldwiki" | "bewiki" | "bewikibooks" | "bewikiquote" | "bewikisource" | "bewiktionary" | "bgwiki" | "bgwikibooks" | "bgwikinews" | "bgwikiquote" | "bgwikisource" | "bgwiktionary" | "bhwiki" | "bhwiktionary" | "biwiki" | "biwikibooks" | "biwiktionary" | "bjnwiki" | "bjnwikiquote" | "bjnwiktionary" | "blkwiki" | "blkwiktionary" | "bmwiki" | "bmwikibooks" | "bmwikiquote" | "bmwiktionary" | "bnwiki" | "bnwikibooks" | "bnwikiquote" | "bnwikisource" | "bnwikivoyage" | "bnwiktionary" | "bowiki" | "bowikibooks" | "bowiktionary" | "bpywiki" | "brwiki" | "brwikiquote" | "brwikisource" | "brwiktionary" | "bswiki" | "bswikibooks" | "bswikinews" | "bswikiquote" | "bswikisource" | "bswiktionary" | "btmwiktionary" | "bugwiki" | "bxrwiki" | "cawiki" | "cawikibooks" | "cawikinews" | "cawikiquote" | "cawikisource" | "cawiktionary" | "cbk_zamwiki" | "cdowiki" | "cebwiki" | "cewiki" | "chowiki" | "chrwiki" | "chrwiktionary" | "chwiki" | "chwikibooks" | "chwiktionary" | "chywiki" | "ckbwiki" | "ckbwiktionary" | "commonswiki" | "cowiki" | "cowikibooks" | "cowikiquote" | "cowiktionary" | "crhwiki" | "crwiki" | "crwikiquote" | "crwiktionary" | "csbwiki" | "csbwiktionary" | "cswiki" | "cswikibooks" | "cswikinews" | "cswikiquote" | "cswikisource" | "cswikiversity" | "cswiktionary" | "cuwiki" | "cvwiki" | "cvwikibooks" | "cywiki" | "cywikibooks" | "cywikiquote" | "cywikisource" | "cywiktionary" | "dagwiki" | "dawiki" | "dawikibooks" | "dawikiquote" | "dawikisource" | "dawiktionary" | "dewiki" | "dewikibooks" | "dewikinews" | "dewikiquote" | "dewikisource" | "dewikiversity" | "dewikivoyage" | "dewiktionary" | "dgawiki" | "dinwiki" | "diqwiki" | "diqwiktionary" | "dsbwiki" | "dtywiki" | "dvwiki" | "dvwiktionary" | "dzwiki" | "dzwiktionary" | "eewiki" | "elwiki" | "elwikibooks" | "elwikinews" | "elwikiquote" | "elwikisource" | "elwikiversity" | "elwikivoyage" | "elwiktionary" | "emlwiki" | "enwiki" | "enwikibooks" | "enwikinews" | "enwikiquote" | "enwikisource" | "enwikiversity" | "enwikivoyage" | "enwiktionary" | "eowiki" | "eowikibooks" | "eowikinews" | "eowikiquote" | "eowikisource" | "eowikivoyage" | "eowiktionary" | "eswiki" | "eswikibooks" | "eswikinews" | "eswikiquote" | "eswikisource" | "eswikiversity" | "eswikivoyage" | "eswiktionary" | "etwiki" | "etwikibooks" | "etwikiquote" | "etwikisource" | "etwiktionary" | "euwiki" | "euwikibooks" | "euwikiquote" | "euwikisource" | "euwiktionary" | "extwiki" | "fatwiki" | "fawiki" | "fawikibooks" | "fawikinews" | "fawikiquote" | "fawikisource" | "fawikivoyage" | "fawiktionary" | "ffwiki" | "fiu_vrowiki" | "fiwiki" | "fiwikibooks" | "fiwikinews" | "fiwikiquote" | "fiwikisource" | "fiwikiversity" | "fiwikivoyage" | "fiwiktionary" | "fjwiki" | "fjwiktionary" | "fonwiki" | "foundationwiki" | "fowiki" | "fowikisource" | "fowiktionary" | "frpwiki" | "frrwiki" | "frwiki" | "frwikibooks" | "frwikinews" | "frwikiquote" | "frwikisource" | "frwikiversity" | "frwikivoyage" | "frwiktionary" | "furwiki" | "fywiki" | "fywikibooks" | "fywiktionary" | "gagwiki" | "ganwiki" | "gawiki" | "gawikibooks" | "gawikiquote" | "gawiktionary" | "gcrwiki" | "gdwiki" | "gdwiktionary" | "glkwiki" | "glwiki" | "glwikibooks" | "glwikiquote" | "glwikisource" | "glwiktionary" | "gnwiki" | "gnwikibooks" | "gnwiktionary" | "gomwiki" | "gomwiktionary" | "gorwiki" | "gorwiktionary" | "gotwiki" | "gotwikibooks" | "gpewiki" | "gucwiki" | "gurwiki" | "guwiki" | "guwikibooks" | "guwikiquote" | "guwikisource" | "guwiktionary" | "guwwiki" | "guwwikinews" | "guwwikiquote" | "guwwiktionary" | "gvwiki" | "gvwiktionary" | "hakwiki" | "hawiki" | "hawiktionary" | "hawwiki" | "hewiki" | "hewikibooks" | "hewikinews" | "hewikiquote" | "hewikisource" | "hewikivoyage" | "hewiktionary" | "hifwiki" | "hifwiktionary" | "hiwiki" | "hiwikibooks" | "hiwikiquote" | "hiwikisource" | "hiwikiversity" | "hiwikivoyage" | "hiwiktionary" | "howiki" | "hrwiki" | "hrwikibooks" | "hrwikiquote" | "hrwikisource" | "hrwiktionary" | "hsbwiki" | "hsbwiktionary" | "htwiki" | "htwikisource" | "huwiki" | "huwikibooks" | "huwikinews" | "huwikiquote" | "huwikisource" | "huwiktionary" | "hywiki" | "hywikibooks" | "hywikiquote" | "hywikisource" | "hywiktionary" | "hywwiki" | "hzwiki" | "iawiki" | "iawikibooks" | "iawiktionary" | "idwiki" | "idwikibooks" | "idwikiquote" | "idwikisource" | "idwiktionary" | "iewiki" | "iewikibooks" | "iewiktionary" | "igwiki" | "igwikiquote" | "igwiktionary" | "iiwiki" | "ikwiki" | "ikwiktionary" | "ilowiki" | "inhwiki" | "iowiki" | "iowiktionary" | "iswiki" | "iswikibooks" | "iswikiquote" | "iswikisource" | "iswiktionary" | "itwiki" | "itwikibooks" | "itwikinews" | "itwikiquote" | "itwikisource" | "itwikiversity" | "itwikivoyage" | "itwiktionary" | "iuwiki" | "iuwiktionary" | "jamwiki" | "jawiki" | "jawikibooks" | "jawikinews" | "jawikiquote" | "jawikisource" | "jawikiversity" | "jawikivoyage" | "jawiktionary" | "jbowiki" | "jbowiktionary" | "jvwiki" | "jvwikisource" | "jvwiktionary" | "kaawiki" | "kabwiki" | "kawiki" | "kawikibooks" | "kawikiquote" | "kawiktionary" | "kbdwiki" | "kbdwiktionary" | "kbpwiki" | "kcgwiki" | "kcgwiktionary" | "kgwiki" | "kiwiki" | "kjwiki" | "kkwiki" | "kkwikibooks" | "kkwikiquote" | "kkwiktionary" | "klwiki" | "klwiktionary" | "kmwiki" | "kmwikibooks" | "kmwiktionary" | "knwiki" | "knwikibooks" | "knwikiquote" | "knwikisource" | "knwiktionary" | "koiwiki" | "kowiki" | "kowikibooks" | "kowikinews" | "kowikiquote" | "kowikisource" | "kowikiversity" | "kowiktionary" | "krcwiki" | "krwiki" | "krwikiquote" | "kshwiki" | "kswiki" | "kswikibooks" | "kswikiquote" | "kswiktionary" | "kuwiki" | "kuwikibooks" | "kuwikiquote" | "kuwiktionary" | "kvwiki" | "kwwiki" | "kwwikiquote" | "kwwiktionary" | "kywiki" | "kywikibooks" | "kywikiquote" | "kywiktionary" | "ladwiki" | "lawiki" | "lawikibooks" | "lawikiquote" | "lawikisource" | "lawiktionary" | "lbewiki" | "lbwiki" | "lbwikibooks" | "lbwikiquote" | "lbwiktionary" | "lezwiki" | "lfnwiki" | "lgwiki" | "lijwiki" | "lijwikisource" | "liwiki" | "liwikibooks" | "liwikinews" | "liwikiquote" | "liwikisource" | "liwiktionary" | "lldwiki" | "lmowiki" | "lmowiktionary" | "lnwiki" | "lnwikibooks" | "lnwiktionary" | "lowiki" | "lowiktionary" | "lrcwiki" | "ltgwiki" | "ltwiki" | "ltwikibooks" | "ltwikiquote" | "ltwikisource" | "ltwiktionary" | "lvwiki" | "lvwikibooks" | "lvwiktionary" | "madwiki" | "maiwiki" | "map_bmswiki" | "mdfwiki" | "mediawikiwiki" | "metawiki" | "mgwiki" | "mgwikibooks" | "mgwiktionary" | "mhrwiki" | "mhwiki" | "mhwiktionary" | "minwiki" | "minwiktionary" | "miwiki" | "miwikibooks" | "miwiktionary" | "mkwiki" | "mkwikibooks" | "mkwikisource" | "mkwiktionary" | "mlwiki" | "mlwikibooks" | "mlwikiquote" | "mlwikisource" | "mlwiktionary" | "mniwiki" | "mniwiktionary" | "mnwiki" | "mnwikibooks" | "mnwiktionary" | "mnwwiki" | "mnwwiktionary" | "mowiki" | "mowiktionary" | "mrjwiki" | "mrwiki" | "mrwikibooks" | "mrwikiquote" | "mrwikisource" | "mrwiktionary" | "mswiki" | "mswikibooks" | "mswiktionary" | "mtwiki" | "mtwiktionary" | "muswiki" | "mwlwiki" | "myvwiki" | "mywiki" | "mywikibooks" | "mywiktionary" | "mznwiki" | "nahwiki" | "nahwikibooks" | "nahwiktionary" | "napwiki" | "napwikisource" | "nawiki" | "nawikibooks" | "nawikiquote" | "nawiktionary" | "nds_nlwiki" | "ndswiki" | "ndswikibooks" | "ndswikiquote" | "ndswiktionary" | "newiki" | "newikibooks" | "newiktionary" | "newwiki" | "ngwiki" | "niawiki" | "niawiktionary" | "nlwiki" | "nlwikibooks" | "nlwikinews" | "nlwikiquote" | "nlwikisource" | "nlwikivoyage" | "nlwiktionary" | "nnwiki" | "nnwikiquote" | "nnwiktionary" | "novwiki" | "nowiki" | "nowikibooks" | "nowikinews" | "nowikiquote" | "nowikisource" | "nowiktionary" | "nqowiki" | "nrmwiki" | "nsowiki" | "nvwiki" | "nywiki" | "ocwiki" | "ocwikibooks" | "ocwiktionary" | "olowiki" | "omwiki" | "omwiktionary" | "orwiki" | "orwikisource" | "orwiktionary" | "oswiki" | "outreachwiki" | "pagwiki" | "pamwiki" | "papwiki" | "pawiki" | "pawikibooks" | "pawikisource" | "pawiktionary" | "pcdwiki" | "pcmwiki" | "pdcwiki" | "pflwiki" | "pihwiki" | "piwiki" | "piwiktionary" | "plwiki" | "plwikibooks" | "plwikinews" | "plwikiquote" | "plwikisource" | "plwikivoyage" | "plwiktionary" | "pmswiki" | "pmswikisource" | "pnbwiki" | "pnbwiktionary" | "pntwiki" | "pswiki" | "pswikibooks" | "pswikivoyage" | "pswiktionary" | "ptwiki" | "ptwikibooks" | "ptwikinews" | "ptwikiquote" | "ptwikisource" | "ptwikiversity" | "ptwikivoyage" | "ptwiktionary" | "pwnwiki" | "quwiki" | "quwikibooks" | "quwikiquote" | "quwiktionary" | "rmwiki" | "rmwikibooks" | "rmwiktionary" | "rmywiki" | "rnwiki" | "rnwiktionary" | "roa_rupwiki" | "roa_rupwiktionary" | "roa_tarawiki" | "rowiki" | "rowikibooks" | "rowikinews" | "rowikiquote" | "rowikisource" | "rowikivoyage" | "rowiktionary" | "ruewiki" | "ruwiki" | "ruwikibooks" | "ruwikinews" | "ruwikiquote" | "ruwikisource" | "ruwikiversity" | "ruwikivoyage" | "ruwiktionary" | "rwwiki" | "rwwiktionary" | "sahwiki" | "sahwikiquote" | "sahwikisource" | "satwiki" | "sawiki" | "sawikibooks" | "sawikiquote" | "sawikisource" | "sawiktionary" | "scnwiki" | "scnwiktionary" | "scowiki" | "scwiki" | "scwiktionary" | "sdwiki" | "sdwikinews" | "sdwiktionary" | "sewiki" | "sewikibooks" | "sgwiki" | "sgwiktionary" | "shiwiki" | "shnwiki" | "shnwikibooks" | "shnwikivoyage" | "shnwiktionary" | "shwiki" | "shwiktionary" | "shywiktionary" | "simplewiki" | "simplewikibooks" | "simplewikiquote" | "simplewiktionary" | "siwiki" | "siwikibooks" | "siwiktionary" | "skrwiki" | "skrwiktionary" | "skwiki" | "skwikibooks" | "skwikiquote" | "skwikisource" | "skwiktionary" | "slwiki" | "slwikibooks" | "slwikiquote" | "slwikisource" | "slwikiversity" | "slwiktionary" | "smnwiki" | "smwiki" | "smwiktionary" | "snwiki" | "snwiktionary" | "sourceswiki" | "sowiki" | "sowiktionary" | "specieswiki" | "sqwiki" | "sqwikibooks" | "sqwikinews" | "sqwikiquote" | "sqwiktionary" | "srnwiki" | "srwiki" | "srwikibooks" | "srwikinews" | "srwikiquote" | "srwikisource" | "srwiktionary" | "sswiki" | "sswiktionary" | "stqwiki" | "stwiki" | "stwiktionary" | "suwiki" | "suwikibooks" | "suwikiquote" | "suwikisource" | "suwiktionary" | "svwiki" | "svwikibooks" | "svwikinews" | "svwikiquote" | "svwikisource" | "svwikiversity" | "svwikivoyage" | "svwiktionary" | "swwiki" | "swwikibooks" | "swwiktionary" | "szlwiki" | "szywiki" | "tawiki" | "tawikibooks" | "tawikinews" | "tawikiquote" | "tawikisource" | "tawiktionary" | "taywiki" | "tcywiki" | "tetwiki" | "tewiki" | "tewikibooks" | "tewikiquote" | "tewikisource" | "tewiktionary" | "tgwiki" | "tgwikibooks" | "tgwiktionary" | "thwiki" | "thwikibooks" | "thwikinews" | "thwikiquote" | "thwikisource" | "thwiktionary" | "tiwiki" | "tiwiktionary" | "tkwiki" | "tkwikibooks" | "tkwikiquote" | "tkwiktionary" | "tlwiki" | "tlwikibooks" | "tlwikiquote" | "tlwiktionary" | "tlywiki" | "tnwiki" | "tnwiktionary" | "towiki" | "towiktionary" | "tpiwiki" | "tpiwiktionary" | "trvwiki" | "trwiki" | "trwikibooks" | "trwikinews" | "trwikiquote" | "trwikisource" | "trwikivoyage" | "trwiktionary" | "tswiki" | "tswiktionary" | "ttwiki" | "ttwikibooks" | "ttwikiquote" | "ttwiktionary" | "tumwiki" | "twwiki" | "twwiktionary" | "tyvwiki" | "tywiki" | "udmwiki" | "ugwiki" | "ugwikibooks" | "ugwikiquote" | "ugwiktionary" | "ukwiki" | "ukwikibooks" | "ukwikinews" | "ukwikiquote" | "ukwikisource" | "ukwikivoyage" | "ukwiktionary" | "urwiki" | "urwikibooks" | "urwikiquote" | "urwiktionary" | "uzwiki" | "uzwikibooks" | "uzwikiquote" | "uzwiktionary" | "vecwiki" | "vecwikisource" | "vecwiktionary" | "vepwiki" | "vewiki" | "viwiki" | "viwikibooks" | "viwikiquote" | "viwikisource" | "viwikivoyage" | "viwiktionary" | "vlswiki" | "vowiki" | "vowikibooks" | "vowikiquote" | "vowiktionary" | "warwiki" | "wawiki" | "wawikibooks" | "wawikisource" | "wawiktionary" | "wikidatawiki" | "wikifunctionswiki" | "wikimaniawiki" | "wowiki" | "wowikiquote" | "wowiktionary" | "wuuwiki" | "xalwiki" | "xhwiki" | "xhwikibooks" | "xhwiktionary" | "xmfwiki" | "yiwiki" | "yiwikisource" | "yiwiktionary" | "yowiki" | "yowikibooks" | "yowiktionary" | "yuewiktionary" | "zawiki" | "zawikibooks" | "zawikiquote" | "zawiktionary" | "zeawiki" | "zghwiki" | "zh_classicalwiki" | "zh_min_nanwiki" | "zh_min_nanwikibooks" | "zh_min_nanwikiquote" | "zh_min_nanwikisource" | "zh_min_nanwiktionary" | "zh_yuewiki" | "zhwiki" | "zhwikibooks" | "zhwikinews" | "zhwikiquote" | "zhwikisource" | "zhwikiversity" | "zhwikivoyage" | "zhwiktionary" | "zuwiki" | "zuwikibooks" | "zuwiktionary";
export declare const isSitelinkKey: (site: string) => site is Site;
declare const projectNames: readonly ("commons" | "foundation" | "mediawiki" | "meta" | "outreach" | "sources" | "species" | "wikidata" | "wikifunctions" | "wikimania" | "wikipedia" | "wikisource" | "wikiquote" | "wiktionary" | "wikibooks" | "wikiversity" | "wikivoyage" | "wikinews")[];

@@ -24,0 +24,0 @@ export type Project = typeof projectNames[number];

@@ -7,5 +7,6 @@ export interface WikibaseTimeObject {

export declare function wikibaseTimeToDateObject(wikibaseTime: TimeInputValue): Date;
export declare const wikibaseTimeToEpochTime: (value: TimeInputValue) => string | number;
export declare const wikibaseTimeToEpochTime: (wikibaseTime: TimeInputValue) => number;
export declare const wikibaseTimeToISOString: (value: TimeInputValue) => string;
export declare const wikibaseTimeToSimpleDay: (value: TimeInputValue) => string;
export type TimeConverter<T> = (wikibaseTime: TimeInputValue) => T;
//# sourceMappingURL=time.d.ts.map

@@ -36,20 +36,2 @@ export function wikibaseTimeToDateObject(wikibaseTime) {

};
// Try to parse the date or return the input
function bestEffort(fn) {
return (value) => {
try {
return fn(value);
}
catch (_a) {
value = typeof value === 'string' ? value : value.time;
const sign = value[0];
let [yearMonthDay, withinDay] = value.slice(1).split('T');
if (!sign || !yearMonthDay || !withinDay) {
throw new Error('TimeInput is invalid: ' + JSON.stringify(value));
}
yearMonthDay = yearMonthDay.replace(/-00/g, '-01');
return `${sign}${yearMonthDay}T${withinDay}`;
}
};
}
const toEpochTime = (wikibaseTime) => wikibaseTimeToDateObject(wikibaseTime).getTime();

@@ -88,5 +70,31 @@ const toISOString = (wikibaseTime) => wikibaseTimeToDateObject(wikibaseTime).toISOString();

};
export const wikibaseTimeToEpochTime = bestEffort(toEpochTime);
export const wikibaseTimeToISOString = bestEffort(toISOString);
export const wikibaseTimeToSimpleDay = bestEffort(toSimpleDay);
export const wikibaseTimeToEpochTime = toEpochTime;
export const wikibaseTimeToISOString = (value) => {
try {
return toISOString(value);
}
catch (_a) {
const { sign, yearMonthDay, withinDay } = recoverDateAfterError(value);
return `${sign}${yearMonthDay}T${withinDay}`;
}
};
export const wikibaseTimeToSimpleDay = (value) => {
try {
return toSimpleDay(value);
}
catch (_a) {
const { sign, yearMonthDay } = recoverDateAfterError(value);
return `${sign}${yearMonthDay}`;
}
};
function recoverDateAfterError(value) {
value = typeof value === 'string' ? value : value.time;
const sign = value[0];
let [yearMonthDay, withinDay] = value.slice(1).split('T');
if (!sign || !yearMonthDay || !withinDay) {
throw new Error('TimeInput is invalid: ' + JSON.stringify(value));
}
yearMonthDay = yearMonthDay.replace(/-00/g, '-01');
return { sign, yearMonthDay, withinDay };
}
//# sourceMappingURL=time.js.map
import type { Guid, PropertyId } from './entity.js';
import type { SnakValue } from './snakvalue.js';
import type { SnakDataValue } from './snakvalue.js';
import type { parsers } from '../helpers/parse_snak.js';

@@ -22,3 +22,3 @@ export type Rank = 'normal' | 'preferred' | 'deprecated';

datatype: DataType;
datavalue?: SnakValue;
datavalue?: SnakDataValue;
hash: string;

@@ -25,0 +25,0 @@ property: PropertyId;

import type { DataType, Rank, SnakType } from './claim.js';
import type { Guid, Hash, PropertyId } from './entity.js';
import type { timeConverters } from '../helpers/parse_snak.js';
import type { TimeConverter } from '../helpers/time.js';
export interface SimplifySnakOptions {

@@ -14,5 +15,5 @@ entityPrefix?: string;

keepAll?: boolean;
timeConverter?: keyof typeof timeConverters;
novalueValue?: any;
somevalueValue?: any;
timeConverter?: keyof typeof timeConverters | TimeConverter<unknown>;
novalueValue?: unknown;
somevalueValue?: unknown;
}

@@ -19,0 +20,0 @@ export type SimplifySnaksOptions = SimplifySnakOptions;

@@ -5,5 +5,6 @@ import type { ItemId } from './entity.js';

export type SitelinkBadges = ItemId[];
export type SitelinkTitle = string;
export interface Sitelink {
site: Site;
title: string;
title: SitelinkTitle;
badges: SitelinkBadges;

@@ -13,3 +14,19 @@ url?: Url;

export type Sitelinks = Partial<Record<Site, Sitelink>>;
export type SimplifiedSitelinks = Partial<Record<Site, string>>;
export type SimplifiedSitelinkWithBadges = {
title: SitelinkTitle;
badges: SitelinkBadges;
};
export type SimplifiedSitelinkWithUrl = {
title: SitelinkTitle;
url: Url;
};
export type SimplifiedSitelinkWithBadgesAndUrl = {
title: SitelinkTitle;
url: Url;
badges: SitelinkBadges;
};
export type SimplifiedSitelinks = Partial<Record<Site, SitelinkTitle>>;
export type SimplifiedSitelinksWithBadges = Partial<Record<Site, SimplifiedSitelinkWithBadges>>;
export type SimplifiedSitelinksWithUrls = Partial<Record<Site, SimplifiedSitelinkWithUrl>>;
export type SimplifiedSitelinksWithBadgesAndUrls = Partial<Record<Site, SimplifiedSitelinkWithBadgesAndUrl>>;
//# sourceMappingURL=sitelinks.d.ts.map
import type { EntityId, EntityType } from './entity.js';
import type { LanguageCode } from './options.js';
export type SnakValue = GlobecoordinateSnakValue | MonolingualTextSnakValue | QuantitySnakValue | StringSnakValue | TimeSnakValue | WikibaseEntityIdSnakValue;
/** @deprecated use TimeSnakValue */
export type ClaimSnakTimeValue = TimeSnakValue;
/** @deprecated use QuantitySnakValue */
export type ClaimSnakQuantity = QuantitySnakValue;
/** @deprecated use StringSnakValue */
export type ClaimSnakString = StringSnakValue;
/** @deprecated use WikibaseEntityIdSnakValue */
export type SnakEntityValue = WikibaseEntityIdSnakValue;
/** @deprecated use WikibaseEntityIdSnakValue */
export type ClaimSnakWikibaseItem = WikibaseEntityIdSnakValue;
export interface GlobecoordinateSnakValue {
export interface GlobeCoordinateSnakDataValue {
type: 'globecoordinate';

@@ -24,3 +13,3 @@ value: {

}
export interface MonolingualTextSnakValue {
export interface MonolingualTextSnakDataValue {
type: 'monolingualtext';

@@ -32,3 +21,3 @@ value: {

}
export interface QuantitySnakValue {
export interface QuantitySnakDataValue {
type: 'quantity';

@@ -42,7 +31,14 @@ value: {

}
export interface StringSnakValue {
export interface StringSnakDataValue {
type: 'string';
value: string;
}
export interface TimeSnakValue {
export type CommonsMediaSnakDataValue = StringSnakDataValue;
export type ExternalIdSnakDataValue = StringSnakDataValue;
export type GeoShapeSnakDataValue = StringSnakDataValue;
export type MathSnakDataValue = StringSnakDataValue;
export type MusicalNotationSnakDataValue = StringSnakDataValue;
export type TabularDataSnakDataValue = StringSnakDataValue;
export type UrlSnakDataValue = StringSnakDataValue;
export interface TimeSnakDataValue {
type: 'time';

@@ -58,3 +54,3 @@ value: {

}
export interface WikibaseEntityIdSnakValue {
export interface WikibaseEntityIdSnakDataValue {
type: 'wikibase-entityid';

@@ -67,2 +63,32 @@ value: {

}
export type WikibaseFormSnakDataValue = WikibaseEntityIdSnakDataValue;
export type WikibaseItemSnakDataValue = WikibaseEntityIdSnakDataValue;
export type WikibaseLexemeSnakDataValue = WikibaseEntityIdSnakDataValue;
export type WikibasePropertySnakDataValue = WikibaseEntityIdSnakDataValue;
export type WikibaseSenseSnakDataValue = WikibaseEntityIdSnakDataValue;
export type SnakDataValue = GlobeCoordinateSnakDataValue | MonolingualTextSnakDataValue | QuantitySnakDataValue | StringSnakDataValue | TimeSnakDataValue | WikibaseEntityIdSnakDataValue;
/** @deprecated use SnakDataValue */
export type SnakValue = SnakDataValue;
/** @deprecated use TimeSnakDataValue */
export type ClaimSnakTimeValue = TimeSnakDataValue;
/** @deprecated use QuantitySnakDataValue */
export type ClaimSnakQuantity = QuantitySnakDataValue;
/** @deprecated use StringSnakDataValue */
export type ClaimSnakString = StringSnakDataValue;
/** @deprecated use WikibaseEntityIdSnakDataValue */
export type SnakEntityValue = WikibaseEntityIdSnakDataValue;
/** @deprecated use WikibaseEntityIdSnakDataValue */
export type ClaimSnakWikibaseItem = WikibaseEntityIdSnakDataValue;
/** @deprecated use GlobeCoordinateSnakDataValue */
export type GlobecoordinateSnakValue = GlobeCoordinateSnakDataValue;
/** @deprecated use MonolingualTextSnakDataValue */
export type MonolingualTextSnakValue = MonolingualTextSnakDataValue;
/** @deprecated use QuantitySnakDataValue */
export type QuantitySnakValue = QuantitySnakDataValue;
/** @deprecated use StringSnakDataValue */
export type StringSnakValue = StringSnakDataValue;
/** @deprecated use TimeSnakDataValue */
export type TimeSnakValue = TimeSnakDataValue;
/** @deprecated use WikibaseEntityIdSnakDataValue */
export type WikibaseEntityIdSnakValue = WikibaseEntityIdSnakDataValue;
//# sourceMappingURL=snakvalue.d.ts.map

@@ -21,4 +21,6 @@ /** Example: keep only 'fr' in 'fr_FR' */

export declare function isAKey<T extends PropertyKey>(obj: Readonly<Partial<Record<T, unknown>>>, key: PropertyKey): key is T;
/** like Object.entries() but with typed key */
/** like Object.entries() but with typed keys */
export declare function typedEntries<K extends string, V>(input: Readonly<Partial<Record<K, V>>>): Array<[K, V]>;
/** like Object.keys() but with typed keys */
export declare function typedKeys<Obj>(obj: Obj): (keyof Obj)[];
//# sourceMappingURL=utils.d.ts.map

@@ -51,3 +51,3 @@ /** Example: keep only 'fr' in 'fr_FR' */

}
/** like Object.entries() but with typed key */
/** like Object.entries() but with typed keys */
export function typedEntries(input) {

@@ -57,2 +57,6 @@ // @ts-expect-error string is not assignable to K as K is more specific

}
/** like Object.keys() but with typed keys */
export function typedKeys(obj) {
return Object.keys(obj);
}
//# sourceMappingURL=utils.js.map

@@ -20,3 +20,3 @@ import * as helpers from './helpers/helpers.js';

readonly wikibaseTimeToDateObject: typeof timeHelpers.wikibaseTimeToDateObject;
readonly wikibaseTimeToEpochTime: (value: timeHelpers.TimeInputValue) => string | number;
readonly wikibaseTimeToEpochTime: (wikibaseTime: timeHelpers.TimeInputValue) => number;
readonly wikibaseTimeToISOString: (value: timeHelpers.TimeInputValue) => string;

@@ -29,4 +29,4 @@ readonly wikibaseTimeToSimpleDay: (value: timeHelpers.TimeInputValue) => string;

readonly getSitelinkData: typeof sitelinksHelpers.getSitelinkData;
readonly isSite: (site: string) => site is "aawiki" | "aawikibooks" | "aawiktionary" | "abwiki" | "abwiktionary" | "acewiki" | "adywiki" | "afwiki" | "afwikibooks" | "afwikiquote" | "afwiktionary" | "akwiki" | "akwikibooks" | "akwiktionary" | "alswiki" | "alswikibooks" | "alswikiquote" | "alswiktionary" | "altwiki" | "amiwiki" | "amwiki" | "amwikiquote" | "amwiktionary" | "angwiki" | "angwikibooks" | "angwikiquote" | "angwikisource" | "angwiktionary" | "anpwiki" | "anwiki" | "anwiktionary" | "arcwiki" | "arwiki" | "arwikibooks" | "arwikinews" | "arwikiquote" | "arwikisource" | "arwikiversity" | "arwiktionary" | "arywiki" | "arzwiki" | "astwiki" | "astwikibooks" | "astwikiquote" | "astwiktionary" | "aswiki" | "aswikibooks" | "aswikiquote" | "aswikisource" | "aswiktionary" | "atjwiki" | "avkwiki" | "avwiki" | "avwiktionary" | "awawiki" | "aywiki" | "aywikibooks" | "aywiktionary" | "azbwiki" | "azwiki" | "azwikibooks" | "azwikiquote" | "azwikisource" | "azwiktionary" | "banwiki" | "banwikisource" | "barwiki" | "bat_smgwiki" | "bawiki" | "bawikibooks" | "bbcwiki" | "bclwiki" | "bclwikiquote" | "bclwiktionary" | "be_x_oldwiki" | "bewiki" | "bewikibooks" | "bewikiquote" | "bewikisource" | "bewiktionary" | "bgwiki" | "bgwikibooks" | "bgwikinews" | "bgwikiquote" | "bgwikisource" | "bgwiktionary" | "bhwiki" | "bhwiktionary" | "biwiki" | "biwikibooks" | "biwiktionary" | "bjnwiki" | "bjnwikiquote" | "bjnwiktionary" | "blkwiki" | "blkwiktionary" | "bmwiki" | "bmwikibooks" | "bmwikiquote" | "bmwiktionary" | "bnwiki" | "bnwikibooks" | "bnwikiquote" | "bnwikisource" | "bnwikivoyage" | "bnwiktionary" | "bowiki" | "bowikibooks" | "bowiktionary" | "bpywiki" | "brwiki" | "brwikiquote" | "brwikisource" | "brwiktionary" | "bswiki" | "bswikibooks" | "bswikinews" | "bswikiquote" | "bswikisource" | "bswiktionary" | "btmwiktionary" | "bugwiki" | "bxrwiki" | "cawiki" | "cawikibooks" | "cawikinews" | "cawikiquote" | "cawikisource" | "cawiktionary" | "cbk_zamwiki" | "cdowiki" | "cebwiki" | "cewiki" | "chowiki" | "chrwiki" | "chrwiktionary" | "chwiki" | "chwikibooks" | "chwiktionary" | "chywiki" | "ckbwiki" | "ckbwiktionary" | "commonswiki" | "cowiki" | "cowikibooks" | "cowikiquote" | "cowiktionary" | "crhwiki" | "crwiki" | "crwikiquote" | "crwiktionary" | "csbwiki" | "csbwiktionary" | "cswiki" | "cswikibooks" | "cswikinews" | "cswikiquote" | "cswikisource" | "cswikiversity" | "cswiktionary" | "cuwiki" | "cvwiki" | "cvwikibooks" | "cywiki" | "cywikibooks" | "cywikiquote" | "cywikisource" | "cywiktionary" | "dagwiki" | "dawiki" | "dawikibooks" | "dawikiquote" | "dawikisource" | "dawiktionary" | "dewiki" | "dewikibooks" | "dewikinews" | "dewikiquote" | "dewikisource" | "dewikiversity" | "dewikivoyage" | "dewiktionary" | "dgawiki" | "dinwiki" | "diqwiki" | "diqwiktionary" | "dsbwiki" | "dtywiki" | "dvwiki" | "dvwiktionary" | "dzwiki" | "dzwiktionary" | "eewiki" | "elwiki" | "elwikibooks" | "elwikinews" | "elwikiquote" | "elwikisource" | "elwikiversity" | "elwikivoyage" | "elwiktionary" | "emlwiki" | "enwiki" | "enwikibooks" | "enwikinews" | "enwikiquote" | "enwikisource" | "enwikiversity" | "enwikivoyage" | "enwiktionary" | "eowiki" | "eowikibooks" | "eowikinews" | "eowikiquote" | "eowikisource" | "eowikivoyage" | "eowiktionary" | "eswiki" | "eswikibooks" | "eswikinews" | "eswikiquote" | "eswikisource" | "eswikiversity" | "eswikivoyage" | "eswiktionary" | "etwiki" | "etwikibooks" | "etwikiquote" | "etwikisource" | "etwiktionary" | "euwiki" | "euwikibooks" | "euwikiquote" | "euwikisource" | "euwiktionary" | "extwiki" | "fatwiki" | "fawiki" | "fawikibooks" | "fawikinews" | "fawikiquote" | "fawikisource" | "fawikivoyage" | "fawiktionary" | "ffwiki" | "fiu_vrowiki" | "fiwiki" | "fiwikibooks" | "fiwikinews" | "fiwikiquote" | "fiwikisource" | "fiwikiversity" | "fiwikivoyage" | "fiwiktionary" | "fjwiki" | "fjwiktionary" | "fonwiki" | "foundationwiki" | "fowiki" | "fowikisource" | "fowiktionary" | "frpwiki" | "frrwiki" | "frwiki" | "frwikibooks" | "frwikinews" | "frwikiquote" | "frwikisource" | "frwikiversity" | "frwikivoyage" | "frwiktionary" | "furwiki" | "fywiki" | "fywikibooks" | "fywiktionary" | "gagwiki" | "ganwiki" | "gawiki" | "gawikibooks" | "gawikiquote" | "gawiktionary" | "gcrwiki" | "gdwiki" | "gdwiktionary" | "glkwiki" | "glwiki" | "glwikibooks" | "glwikiquote" | "glwikisource" | "glwiktionary" | "gnwiki" | "gnwikibooks" | "gnwiktionary" | "gomwiki" | "gomwiktionary" | "gorwiki" | "gorwiktionary" | "gotwiki" | "gotwikibooks" | "gpewiki" | "gucwiki" | "gurwiki" | "guwiki" | "guwikibooks" | "guwikiquote" | "guwikisource" | "guwiktionary" | "guwwiki" | "guwwikinews" | "guwwikiquote" | "guwwiktionary" | "gvwiki" | "gvwiktionary" | "hakwiki" | "hawiki" | "hawiktionary" | "hawwiki" | "hewiki" | "hewikibooks" | "hewikinews" | "hewikiquote" | "hewikisource" | "hewikivoyage" | "hewiktionary" | "hifwiki" | "hifwiktionary" | "hiwiki" | "hiwikibooks" | "hiwikiquote" | "hiwikisource" | "hiwikiversity" | "hiwikivoyage" | "hiwiktionary" | "howiki" | "hrwiki" | "hrwikibooks" | "hrwikiquote" | "hrwikisource" | "hrwiktionary" | "hsbwiki" | "hsbwiktionary" | "htwiki" | "htwikisource" | "huwiki" | "huwikibooks" | "huwikinews" | "huwikiquote" | "huwikisource" | "huwiktionary" | "hywiki" | "hywikibooks" | "hywikiquote" | "hywikisource" | "hywiktionary" | "hywwiki" | "hzwiki" | "iawiki" | "iawikibooks" | "iawiktionary" | "idwiki" | "idwikibooks" | "idwikiquote" | "idwikisource" | "idwiktionary" | "iewiki" | "iewikibooks" | "iewiktionary" | "igwiki" | "igwikiquote" | "igwiktionary" | "iiwiki" | "ikwiki" | "ikwiktionary" | "ilowiki" | "inhwiki" | "iowiki" | "iowiktionary" | "iswiki" | "iswikibooks" | "iswikiquote" | "iswikisource" | "iswiktionary" | "itwiki" | "itwikibooks" | "itwikinews" | "itwikiquote" | "itwikisource" | "itwikiversity" | "itwikivoyage" | "itwiktionary" | "iuwiki" | "iuwiktionary" | "jamwiki" | "jawiki" | "jawikibooks" | "jawikinews" | "jawikiquote" | "jawikisource" | "jawikiversity" | "jawikivoyage" | "jawiktionary" | "jbowiki" | "jbowiktionary" | "jvwiki" | "jvwikisource" | "jvwiktionary" | "kaawiki" | "kabwiki" | "kawiki" | "kawikibooks" | "kawikiquote" | "kawiktionary" | "kbdwiki" | "kbdwiktionary" | "kbpwiki" | "kcgwiki" | "kcgwiktionary" | "kgwiki" | "kiwiki" | "kjwiki" | "kkwiki" | "kkwikibooks" | "kkwikiquote" | "kkwiktionary" | "klwiki" | "klwiktionary" | "kmwiki" | "kmwikibooks" | "kmwiktionary" | "knwiki" | "knwikibooks" | "knwikiquote" | "knwikisource" | "knwiktionary" | "koiwiki" | "kowiki" | "kowikibooks" | "kowikinews" | "kowikiquote" | "kowikisource" | "kowikiversity" | "kowiktionary" | "krcwiki" | "krwiki" | "krwikiquote" | "kshwiki" | "kswiki" | "kswikibooks" | "kswikiquote" | "kswiktionary" | "kuwiki" | "kuwikibooks" | "kuwikiquote" | "kuwiktionary" | "kvwiki" | "kwwiki" | "kwwikiquote" | "kwwiktionary" | "kywiki" | "kywikibooks" | "kywikiquote" | "kywiktionary" | "ladwiki" | "lawiki" | "lawikibooks" | "lawikiquote" | "lawikisource" | "lawiktionary" | "lbewiki" | "lbwiki" | "lbwikibooks" | "lbwikiquote" | "lbwiktionary" | "lezwiki" | "lfnwiki" | "lgwiki" | "lijwiki" | "lijwikisource" | "liwiki" | "liwikibooks" | "liwikinews" | "liwikiquote" | "liwikisource" | "liwiktionary" | "lldwiki" | "lmowiki" | "lmowiktionary" | "lnwiki" | "lnwikibooks" | "lnwiktionary" | "lowiki" | "lowiktionary" | "lrcwiki" | "ltgwiki" | "ltwiki" | "ltwikibooks" | "ltwikiquote" | "ltwikisource" | "ltwiktionary" | "lvwiki" | "lvwikibooks" | "lvwiktionary" | "madwiki" | "maiwiki" | "map_bmswiki" | "mdfwiki" | "mediawikiwiki" | "metawiki" | "mgwiki" | "mgwikibooks" | "mgwiktionary" | "mhrwiki" | "mhwiki" | "mhwiktionary" | "minwiki" | "minwiktionary" | "miwiki" | "miwikibooks" | "miwiktionary" | "mkwiki" | "mkwikibooks" | "mkwikisource" | "mkwiktionary" | "mlwiki" | "mlwikibooks" | "mlwikiquote" | "mlwikisource" | "mlwiktionary" | "mniwiki" | "mniwiktionary" | "mnwiki" | "mnwikibooks" | "mnwiktionary" | "mnwwiki" | "mnwwiktionary" | "mowiki" | "mowiktionary" | "mrjwiki" | "mrwiki" | "mrwikibooks" | "mrwikiquote" | "mrwikisource" | "mrwiktionary" | "mswiki" | "mswikibooks" | "mswiktionary" | "mtwiki" | "mtwiktionary" | "muswiki" | "mwlwiki" | "myvwiki" | "mywiki" | "mywikibooks" | "mywiktionary" | "mznwiki" | "nahwiki" | "nahwikibooks" | "nahwiktionary" | "napwiki" | "napwikisource" | "nawiki" | "nawikibooks" | "nawikiquote" | "nawiktionary" | "nds_nlwiki" | "ndswiki" | "ndswikibooks" | "ndswikiquote" | "ndswiktionary" | "newiki" | "newikibooks" | "newiktionary" | "newwiki" | "ngwiki" | "niawiki" | "niawiktionary" | "nlwiki" | "nlwikibooks" | "nlwikinews" | "nlwikiquote" | "nlwikisource" | "nlwikivoyage" | "nlwiktionary" | "nnwiki" | "nnwikiquote" | "nnwiktionary" | "novwiki" | "nowiki" | "nowikibooks" | "nowikinews" | "nowikiquote" | "nowikisource" | "nowiktionary" | "nqowiki" | "nrmwiki" | "nsowiki" | "nvwiki" | "nywiki" | "ocwiki" | "ocwikibooks" | "ocwiktionary" | "olowiki" | "omwiki" | "omwiktionary" | "orwiki" | "orwikisource" | "orwiktionary" | "oswiki" | "outreachwiki" | "pagwiki" | "pamwiki" | "papwiki" | "pawiki" | "pawikibooks" | "pawikisource" | "pawiktionary" | "pcdwiki" | "pcmwiki" | "pdcwiki" | "pflwiki" | "pihwiki" | "piwiki" | "piwiktionary" | "plwiki" | "plwikibooks" | "plwikinews" | "plwikiquote" | "plwikisource" | "plwikivoyage" | "plwiktionary" | "pmswiki" | "pmswikisource" | "pnbwiki" | "pnbwiktionary" | "pntwiki" | "pswiki" | "pswikibooks" | "pswikivoyage" | "pswiktionary" | "ptwiki" | "ptwikibooks" | "ptwikinews" | "ptwikiquote" | "ptwikisource" | "ptwikiversity" | "ptwikivoyage" | "ptwiktionary" | "pwnwiki" | "quwiki" | "quwikibooks" | "quwikiquote" | "quwiktionary" | "rmwiki" | "rmwikibooks" | "rmwiktionary" | "rmywiki" | "rnwiki" | "rnwiktionary" | "roa_rupwiki" | "roa_rupwiktionary" | "roa_tarawiki" | "rowiki" | "rowikibooks" | "rowikinews" | "rowikiquote" | "rowikisource" | "rowikivoyage" | "rowiktionary" | "ruewiki" | "ruwiki" | "ruwikibooks" | "ruwikinews" | "ruwikiquote" | "ruwikisource" | "ruwikiversity" | "ruwikivoyage" | "ruwiktionary" | "rwwiki" | "rwwiktionary" | "sahwiki" | "sahwikiquote" | "sahwikisource" | "satwiki" | "sawiki" | "sawikibooks" | "sawikiquote" | "sawikisource" | "sawiktionary" | "scnwiki" | "scnwiktionary" | "scowiki" | "scwiki" | "scwiktionary" | "sdwiki" | "sdwikinews" | "sdwiktionary" | "sewiki" | "sewikibooks" | "sgwiki" | "sgwiktionary" | "shiwiki" | "shnwiki" | "shnwikibooks" | "shnwikivoyage" | "shnwiktionary" | "shwiki" | "shwiktionary" | "shywiktionary" | "simplewiki" | "simplewikibooks" | "simplewikiquote" | "simplewiktionary" | "siwiki" | "siwikibooks" | "siwiktionary" | "skrwiki" | "skrwiktionary" | "skwiki" | "skwikibooks" | "skwikiquote" | "skwikisource" | "skwiktionary" | "slwiki" | "slwikibooks" | "slwikiquote" | "slwikisource" | "slwikiversity" | "slwiktionary" | "smnwiki" | "smwiki" | "smwiktionary" | "snwiki" | "snwiktionary" | "sourceswiki" | "sowiki" | "sowiktionary" | "specieswiki" | "sqwiki" | "sqwikibooks" | "sqwikinews" | "sqwikiquote" | "sqwiktionary" | "srnwiki" | "srwiki" | "srwikibooks" | "srwikinews" | "srwikiquote" | "srwikisource" | "srwiktionary" | "sswiki" | "sswiktionary" | "stqwiki" | "stwiki" | "stwiktionary" | "suwiki" | "suwikibooks" | "suwikiquote" | "suwikisource" | "suwiktionary" | "svwiki" | "svwikibooks" | "svwikinews" | "svwikiquote" | "svwikisource" | "svwikiversity" | "svwikivoyage" | "svwiktionary" | "swwiki" | "swwikibooks" | "swwiktionary" | "szlwiki" | "szywiki" | "tawiki" | "tawikibooks" | "tawikinews" | "tawikiquote" | "tawikisource" | "tawiktionary" | "taywiki" | "tcywiki" | "tetwiki" | "tewiki" | "tewikibooks" | "tewikiquote" | "tewikisource" | "tewiktionary" | "tgwiki" | "tgwikibooks" | "tgwiktionary" | "thwiki" | "thwikibooks" | "thwikinews" | "thwikiquote" | "thwikisource" | "thwiktionary" | "tiwiki" | "tiwiktionary" | "tkwiki" | "tkwikibooks" | "tkwikiquote" | "tkwiktionary" | "tlwiki" | "tlwikibooks" | "tlwikiquote" | "tlwiktionary" | "tlywiki" | "tnwiki" | "tnwiktionary" | "towiki" | "towiktionary" | "tpiwiki" | "tpiwiktionary" | "trvwiki" | "trwiki" | "trwikibooks" | "trwikinews" | "trwikiquote" | "trwikisource" | "trwikivoyage" | "trwiktionary" | "tswiki" | "tswiktionary" | "ttwiki" | "ttwikibooks" | "ttwikiquote" | "ttwiktionary" | "tumwiki" | "twwiki" | "twwiktionary" | "tyvwiki" | "tywiki" | "udmwiki" | "ugwiki" | "ugwikibooks" | "ugwikiquote" | "ugwiktionary" | "ukwiki" | "ukwikibooks" | "ukwikinews" | "ukwikiquote" | "ukwikisource" | "ukwikivoyage" | "ukwiktionary" | "urwiki" | "urwikibooks" | "urwikiquote" | "urwiktionary" | "uzwiki" | "uzwikibooks" | "uzwikiquote" | "uzwiktionary" | "vecwiki" | "vecwikisource" | "vecwiktionary" | "vepwiki" | "vewiki" | "viwiki" | "viwikibooks" | "viwikiquote" | "viwikisource" | "viwikivoyage" | "viwiktionary" | "vlswiki" | "vowiki" | "vowikibooks" | "vowikiquote" | "vowiktionary" | "warwiki" | "wawiki" | "wawikibooks" | "wawikisource" | "wawiktionary" | "wikidatawiki" | "wikifunctionswiki" | "wikimaniawiki" | "wowiki" | "wowikiquote" | "wowiktionary" | "wuuwiki" | "xalwiki" | "xhwiki" | "xhwikibooks" | "xhwiktionary" | "xmfwiki" | "yiwiki" | "yiwikisource" | "yiwiktionary" | "yowiki" | "yowikibooks" | "yowiktionary" | "yuewiktionary" | "zawiki" | "zawikibooks" | "zawikiquote" | "zawiktionary" | "zeawiki" | "zghwiki" | "zh_classicalwiki" | "zh_min_nanwiki" | "zh_min_nanwikibooks" | "zh_min_nanwikiquote" | "zh_min_nanwikisource" | "zh_min_nanwiktionary" | "zh_yuewiki" | "zhwiki" | "zhwikibooks" | "zhwikinews" | "zhwikiquote" | "zhwikisource" | "zhwikiversity" | "zhwikivoyage" | "zhwiktionary" | "zuwiki" | "zuwikibooks" | "zuwiktionary";
readonly isSitelinkKey: (site: string) => site is "aawiki" | "aawikibooks" | "aawiktionary" | "abwiki" | "abwiktionary" | "acewiki" | "adywiki" | "afwiki" | "afwikibooks" | "afwikiquote" | "afwiktionary" | "akwiki" | "akwikibooks" | "akwiktionary" | "alswiki" | "alswikibooks" | "alswikiquote" | "alswiktionary" | "altwiki" | "amiwiki" | "amwiki" | "amwikiquote" | "amwiktionary" | "angwiki" | "angwikibooks" | "angwikiquote" | "angwikisource" | "angwiktionary" | "anpwiki" | "anwiki" | "anwiktionary" | "arcwiki" | "arwiki" | "arwikibooks" | "arwikinews" | "arwikiquote" | "arwikisource" | "arwikiversity" | "arwiktionary" | "arywiki" | "arzwiki" | "astwiki" | "astwikibooks" | "astwikiquote" | "astwiktionary" | "aswiki" | "aswikibooks" | "aswikiquote" | "aswikisource" | "aswiktionary" | "atjwiki" | "avkwiki" | "avwiki" | "avwiktionary" | "awawiki" | "aywiki" | "aywikibooks" | "aywiktionary" | "azbwiki" | "azwiki" | "azwikibooks" | "azwikiquote" | "azwikisource" | "azwiktionary" | "banwiki" | "banwikisource" | "barwiki" | "bat_smgwiki" | "bawiki" | "bawikibooks" | "bbcwiki" | "bclwiki" | "bclwikiquote" | "bclwiktionary" | "be_x_oldwiki" | "bewiki" | "bewikibooks" | "bewikiquote" | "bewikisource" | "bewiktionary" | "bgwiki" | "bgwikibooks" | "bgwikinews" | "bgwikiquote" | "bgwikisource" | "bgwiktionary" | "bhwiki" | "bhwiktionary" | "biwiki" | "biwikibooks" | "biwiktionary" | "bjnwiki" | "bjnwikiquote" | "bjnwiktionary" | "blkwiki" | "blkwiktionary" | "bmwiki" | "bmwikibooks" | "bmwikiquote" | "bmwiktionary" | "bnwiki" | "bnwikibooks" | "bnwikiquote" | "bnwikisource" | "bnwikivoyage" | "bnwiktionary" | "bowiki" | "bowikibooks" | "bowiktionary" | "bpywiki" | "brwiki" | "brwikiquote" | "brwikisource" | "brwiktionary" | "bswiki" | "bswikibooks" | "bswikinews" | "bswikiquote" | "bswikisource" | "bswiktionary" | "btmwiktionary" | "bugwiki" | "bxrwiki" | "cawiki" | "cawikibooks" | "cawikinews" | "cawikiquote" | "cawikisource" | "cawiktionary" | "cbk_zamwiki" | "cdowiki" | "cebwiki" | "cewiki" | "chowiki" | "chrwiki" | "chrwiktionary" | "chwiki" | "chwikibooks" | "chwiktionary" | "chywiki" | "ckbwiki" | "ckbwiktionary" | "commonswiki" | "cowiki" | "cowikibooks" | "cowikiquote" | "cowiktionary" | "crhwiki" | "crwiki" | "crwikiquote" | "crwiktionary" | "csbwiki" | "csbwiktionary" | "cswiki" | "cswikibooks" | "cswikinews" | "cswikiquote" | "cswikisource" | "cswikiversity" | "cswiktionary" | "cuwiki" | "cvwiki" | "cvwikibooks" | "cywiki" | "cywikibooks" | "cywikiquote" | "cywikisource" | "cywiktionary" | "dagwiki" | "dawiki" | "dawikibooks" | "dawikiquote" | "dawikisource" | "dawiktionary" | "dewiki" | "dewikibooks" | "dewikinews" | "dewikiquote" | "dewikisource" | "dewikiversity" | "dewikivoyage" | "dewiktionary" | "dgawiki" | "dinwiki" | "diqwiki" | "diqwiktionary" | "dsbwiki" | "dtywiki" | "dvwiki" | "dvwiktionary" | "dzwiki" | "dzwiktionary" | "eewiki" | "elwiki" | "elwikibooks" | "elwikinews" | "elwikiquote" | "elwikisource" | "elwikiversity" | "elwikivoyage" | "elwiktionary" | "emlwiki" | "enwiki" | "enwikibooks" | "enwikinews" | "enwikiquote" | "enwikisource" | "enwikiversity" | "enwikivoyage" | "enwiktionary" | "eowiki" | "eowikibooks" | "eowikinews" | "eowikiquote" | "eowikisource" | "eowikivoyage" | "eowiktionary" | "eswiki" | "eswikibooks" | "eswikinews" | "eswikiquote" | "eswikisource" | "eswikiversity" | "eswikivoyage" | "eswiktionary" | "etwiki" | "etwikibooks" | "etwikiquote" | "etwikisource" | "etwiktionary" | "euwiki" | "euwikibooks" | "euwikiquote" | "euwikisource" | "euwiktionary" | "extwiki" | "fatwiki" | "fawiki" | "fawikibooks" | "fawikinews" | "fawikiquote" | "fawikisource" | "fawikivoyage" | "fawiktionary" | "ffwiki" | "fiu_vrowiki" | "fiwiki" | "fiwikibooks" | "fiwikinews" | "fiwikiquote" | "fiwikisource" | "fiwikiversity" | "fiwikivoyage" | "fiwiktionary" | "fjwiki" | "fjwiktionary" | "fonwiki" | "foundationwiki" | "fowiki" | "fowikisource" | "fowiktionary" | "frpwiki" | "frrwiki" | "frwiki" | "frwikibooks" | "frwikinews" | "frwikiquote" | "frwikisource" | "frwikiversity" | "frwikivoyage" | "frwiktionary" | "furwiki" | "fywiki" | "fywikibooks" | "fywiktionary" | "gagwiki" | "ganwiki" | "gawiki" | "gawikibooks" | "gawikiquote" | "gawiktionary" | "gcrwiki" | "gdwiki" | "gdwiktionary" | "glkwiki" | "glwiki" | "glwikibooks" | "glwikiquote" | "glwikisource" | "glwiktionary" | "gnwiki" | "gnwikibooks" | "gnwiktionary" | "gomwiki" | "gomwiktionary" | "gorwiki" | "gorwiktionary" | "gotwiki" | "gotwikibooks" | "gpewiki" | "gucwiki" | "gurwiki" | "guwiki" | "guwikibooks" | "guwikiquote" | "guwikisource" | "guwiktionary" | "guwwiki" | "guwwikinews" | "guwwikiquote" | "guwwiktionary" | "gvwiki" | "gvwiktionary" | "hakwiki" | "hawiki" | "hawiktionary" | "hawwiki" | "hewiki" | "hewikibooks" | "hewikinews" | "hewikiquote" | "hewikisource" | "hewikivoyage" | "hewiktionary" | "hifwiki" | "hifwiktionary" | "hiwiki" | "hiwikibooks" | "hiwikiquote" | "hiwikisource" | "hiwikiversity" | "hiwikivoyage" | "hiwiktionary" | "howiki" | "hrwiki" | "hrwikibooks" | "hrwikiquote" | "hrwikisource" | "hrwiktionary" | "hsbwiki" | "hsbwiktionary" | "htwiki" | "htwikisource" | "huwiki" | "huwikibooks" | "huwikinews" | "huwikiquote" | "huwikisource" | "huwiktionary" | "hywiki" | "hywikibooks" | "hywikiquote" | "hywikisource" | "hywiktionary" | "hywwiki" | "hzwiki" | "iawiki" | "iawikibooks" | "iawiktionary" | "idwiki" | "idwikibooks" | "idwikiquote" | "idwikisource" | "idwiktionary" | "iewiki" | "iewikibooks" | "iewiktionary" | "igwiki" | "igwikiquote" | "igwiktionary" | "iiwiki" | "ikwiki" | "ikwiktionary" | "ilowiki" | "inhwiki" | "iowiki" | "iowiktionary" | "iswiki" | "iswikibooks" | "iswikiquote" | "iswikisource" | "iswiktionary" | "itwiki" | "itwikibooks" | "itwikinews" | "itwikiquote" | "itwikisource" | "itwikiversity" | "itwikivoyage" | "itwiktionary" | "iuwiki" | "iuwiktionary" | "jamwiki" | "jawiki" | "jawikibooks" | "jawikinews" | "jawikiquote" | "jawikisource" | "jawikiversity" | "jawikivoyage" | "jawiktionary" | "jbowiki" | "jbowiktionary" | "jvwiki" | "jvwikisource" | "jvwiktionary" | "kaawiki" | "kabwiki" | "kawiki" | "kawikibooks" | "kawikiquote" | "kawiktionary" | "kbdwiki" | "kbdwiktionary" | "kbpwiki" | "kcgwiki" | "kcgwiktionary" | "kgwiki" | "kiwiki" | "kjwiki" | "kkwiki" | "kkwikibooks" | "kkwikiquote" | "kkwiktionary" | "klwiki" | "klwiktionary" | "kmwiki" | "kmwikibooks" | "kmwiktionary" | "knwiki" | "knwikibooks" | "knwikiquote" | "knwikisource" | "knwiktionary" | "koiwiki" | "kowiki" | "kowikibooks" | "kowikinews" | "kowikiquote" | "kowikisource" | "kowikiversity" | "kowiktionary" | "krcwiki" | "krwiki" | "krwikiquote" | "kshwiki" | "kswiki" | "kswikibooks" | "kswikiquote" | "kswiktionary" | "kuwiki" | "kuwikibooks" | "kuwikiquote" | "kuwiktionary" | "kvwiki" | "kwwiki" | "kwwikiquote" | "kwwiktionary" | "kywiki" | "kywikibooks" | "kywikiquote" | "kywiktionary" | "ladwiki" | "lawiki" | "lawikibooks" | "lawikiquote" | "lawikisource" | "lawiktionary" | "lbewiki" | "lbwiki" | "lbwikibooks" | "lbwikiquote" | "lbwiktionary" | "lezwiki" | "lfnwiki" | "lgwiki" | "lijwiki" | "lijwikisource" | "liwiki" | "liwikibooks" | "liwikinews" | "liwikiquote" | "liwikisource" | "liwiktionary" | "lldwiki" | "lmowiki" | "lmowiktionary" | "lnwiki" | "lnwikibooks" | "lnwiktionary" | "lowiki" | "lowiktionary" | "lrcwiki" | "ltgwiki" | "ltwiki" | "ltwikibooks" | "ltwikiquote" | "ltwikisource" | "ltwiktionary" | "lvwiki" | "lvwikibooks" | "lvwiktionary" | "madwiki" | "maiwiki" | "map_bmswiki" | "mdfwiki" | "mediawikiwiki" | "metawiki" | "mgwiki" | "mgwikibooks" | "mgwiktionary" | "mhrwiki" | "mhwiki" | "mhwiktionary" | "minwiki" | "minwiktionary" | "miwiki" | "miwikibooks" | "miwiktionary" | "mkwiki" | "mkwikibooks" | "mkwikisource" | "mkwiktionary" | "mlwiki" | "mlwikibooks" | "mlwikiquote" | "mlwikisource" | "mlwiktionary" | "mniwiki" | "mniwiktionary" | "mnwiki" | "mnwikibooks" | "mnwiktionary" | "mnwwiki" | "mnwwiktionary" | "mowiki" | "mowiktionary" | "mrjwiki" | "mrwiki" | "mrwikibooks" | "mrwikiquote" | "mrwikisource" | "mrwiktionary" | "mswiki" | "mswikibooks" | "mswiktionary" | "mtwiki" | "mtwiktionary" | "muswiki" | "mwlwiki" | "myvwiki" | "mywiki" | "mywikibooks" | "mywiktionary" | "mznwiki" | "nahwiki" | "nahwikibooks" | "nahwiktionary" | "napwiki" | "napwikisource" | "nawiki" | "nawikibooks" | "nawikiquote" | "nawiktionary" | "nds_nlwiki" | "ndswiki" | "ndswikibooks" | "ndswikiquote" | "ndswiktionary" | "newiki" | "newikibooks" | "newiktionary" | "newwiki" | "ngwiki" | "niawiki" | "niawiktionary" | "nlwiki" | "nlwikibooks" | "nlwikinews" | "nlwikiquote" | "nlwikisource" | "nlwikivoyage" | "nlwiktionary" | "nnwiki" | "nnwikiquote" | "nnwiktionary" | "novwiki" | "nowiki" | "nowikibooks" | "nowikinews" | "nowikiquote" | "nowikisource" | "nowiktionary" | "nqowiki" | "nrmwiki" | "nsowiki" | "nvwiki" | "nywiki" | "ocwiki" | "ocwikibooks" | "ocwiktionary" | "olowiki" | "omwiki" | "omwiktionary" | "orwiki" | "orwikisource" | "orwiktionary" | "oswiki" | "outreachwiki" | "pagwiki" | "pamwiki" | "papwiki" | "pawiki" | "pawikibooks" | "pawikisource" | "pawiktionary" | "pcdwiki" | "pcmwiki" | "pdcwiki" | "pflwiki" | "pihwiki" | "piwiki" | "piwiktionary" | "plwiki" | "plwikibooks" | "plwikinews" | "plwikiquote" | "plwikisource" | "plwikivoyage" | "plwiktionary" | "pmswiki" | "pmswikisource" | "pnbwiki" | "pnbwiktionary" | "pntwiki" | "pswiki" | "pswikibooks" | "pswikivoyage" | "pswiktionary" | "ptwiki" | "ptwikibooks" | "ptwikinews" | "ptwikiquote" | "ptwikisource" | "ptwikiversity" | "ptwikivoyage" | "ptwiktionary" | "pwnwiki" | "quwiki" | "quwikibooks" | "quwikiquote" | "quwiktionary" | "rmwiki" | "rmwikibooks" | "rmwiktionary" | "rmywiki" | "rnwiki" | "rnwiktionary" | "roa_rupwiki" | "roa_rupwiktionary" | "roa_tarawiki" | "rowiki" | "rowikibooks" | "rowikinews" | "rowikiquote" | "rowikisource" | "rowikivoyage" | "rowiktionary" | "ruewiki" | "ruwiki" | "ruwikibooks" | "ruwikinews" | "ruwikiquote" | "ruwikisource" | "ruwikiversity" | "ruwikivoyage" | "ruwiktionary" | "rwwiki" | "rwwiktionary" | "sahwiki" | "sahwikiquote" | "sahwikisource" | "satwiki" | "sawiki" | "sawikibooks" | "sawikiquote" | "sawikisource" | "sawiktionary" | "scnwiki" | "scnwiktionary" | "scowiki" | "scwiki" | "scwiktionary" | "sdwiki" | "sdwikinews" | "sdwiktionary" | "sewiki" | "sewikibooks" | "sgwiki" | "sgwiktionary" | "shiwiki" | "shnwiki" | "shnwikibooks" | "shnwikivoyage" | "shnwiktionary" | "shwiki" | "shwiktionary" | "shywiktionary" | "simplewiki" | "simplewikibooks" | "simplewikiquote" | "simplewiktionary" | "siwiki" | "siwikibooks" | "siwiktionary" | "skrwiki" | "skrwiktionary" | "skwiki" | "skwikibooks" | "skwikiquote" | "skwikisource" | "skwiktionary" | "slwiki" | "slwikibooks" | "slwikiquote" | "slwikisource" | "slwikiversity" | "slwiktionary" | "smnwiki" | "smwiki" | "smwiktionary" | "snwiki" | "snwiktionary" | "sourceswiki" | "sowiki" | "sowiktionary" | "specieswiki" | "sqwiki" | "sqwikibooks" | "sqwikinews" | "sqwikiquote" | "sqwiktionary" | "srnwiki" | "srwiki" | "srwikibooks" | "srwikinews" | "srwikiquote" | "srwikisource" | "srwiktionary" | "sswiki" | "sswiktionary" | "stqwiki" | "stwiki" | "stwiktionary" | "suwiki" | "suwikibooks" | "suwikiquote" | "suwikisource" | "suwiktionary" | "svwiki" | "svwikibooks" | "svwikinews" | "svwikiquote" | "svwikisource" | "svwikiversity" | "svwikivoyage" | "svwiktionary" | "swwiki" | "swwikibooks" | "swwiktionary" | "szlwiki" | "szywiki" | "tawiki" | "tawikibooks" | "tawikinews" | "tawikiquote" | "tawikisource" | "tawiktionary" | "taywiki" | "tcywiki" | "tetwiki" | "tewiki" | "tewikibooks" | "tewikiquote" | "tewikisource" | "tewiktionary" | "tgwiki" | "tgwikibooks" | "tgwiktionary" | "thwiki" | "thwikibooks" | "thwikinews" | "thwikiquote" | "thwikisource" | "thwiktionary" | "tiwiki" | "tiwiktionary" | "tkwiki" | "tkwikibooks" | "tkwikiquote" | "tkwiktionary" | "tlwiki" | "tlwikibooks" | "tlwikiquote" | "tlwiktionary" | "tlywiki" | "tnwiki" | "tnwiktionary" | "towiki" | "towiktionary" | "tpiwiki" | "tpiwiktionary" | "trvwiki" | "trwiki" | "trwikibooks" | "trwikinews" | "trwikiquote" | "trwikisource" | "trwikivoyage" | "trwiktionary" | "tswiki" | "tswiktionary" | "ttwiki" | "ttwikibooks" | "ttwikiquote" | "ttwiktionary" | "tumwiki" | "twwiki" | "twwiktionary" | "tyvwiki" | "tywiki" | "udmwiki" | "ugwiki" | "ugwikibooks" | "ugwikiquote" | "ugwiktionary" | "ukwiki" | "ukwikibooks" | "ukwikinews" | "ukwikiquote" | "ukwikisource" | "ukwikivoyage" | "ukwiktionary" | "urwiki" | "urwikibooks" | "urwikiquote" | "urwiktionary" | "uzwiki" | "uzwikibooks" | "uzwikiquote" | "uzwiktionary" | "vecwiki" | "vecwikisource" | "vecwiktionary" | "vepwiki" | "vewiki" | "viwiki" | "viwikibooks" | "viwikiquote" | "viwikisource" | "viwikivoyage" | "viwiktionary" | "vlswiki" | "vowiki" | "vowikibooks" | "vowikiquote" | "vowiktionary" | "warwiki" | "wawiki" | "wawikibooks" | "wawikisource" | "wawiktionary" | "wikidatawiki" | "wikifunctionswiki" | "wikimaniawiki" | "wowiki" | "wowikiquote" | "wowiktionary" | "wuuwiki" | "xalwiki" | "xhwiki" | "xhwikibooks" | "xhwiktionary" | "xmfwiki" | "yiwiki" | "yiwikisource" | "yiwiktionary" | "yowiki" | "yowikibooks" | "yowiktionary" | "yuewiktionary" | "zawiki" | "zawikibooks" | "zawikiquote" | "zawiktionary" | "zeawiki" | "zghwiki" | "zh_classicalwiki" | "zh_min_nanwiki" | "zh_min_nanwikibooks" | "zh_min_nanwikiquote" | "zh_min_nanwikisource" | "zh_min_nanwiktionary" | "zh_yuewiki" | "zhwiki" | "zhwikibooks" | "zhwikinews" | "zhwikiquote" | "zhwikisource" | "zhwikiversity" | "zhwikivoyage" | "zhwiktionary" | "zuwiki" | "zuwikibooks" | "zuwiktionary";
readonly isSite: (site: string) => site is import("./index.js").Site;
readonly isSitelinkKey: (site: string) => site is import("./index.js").Site;
readonly isPropertyClaimsId: typeof helpers.isPropertyClaimsId;

@@ -33,0 +33,0 @@ readonly isEntityPageTitle: typeof helpers.isEntityPageTitle;

{
"name": "wikibase-sdk",
"version": "10.0.2",
"version": "10.0.3",
"type": "module",

@@ -62,8 +62,9 @@ "description": "utils functions to query a Wikibase instance and simplify its results",

"devDependencies": {
"@swc/core": "^1.4.7",
"@types/lodash-es": "^4.17.6",
"@types/mocha": "^10.0.1",
"@types/node": "^12.20.55",
"@typescript-eslint/eslint-plugin": "^5.49.0",
"@typescript-eslint/parser": "^5.49.0",
"@stylistic/eslint-plugin-ts": "^2.6.0",
"@swc/core": "^1.7.4",
"@types/lodash-es": "^4.17.12",
"@types/mocha": "^10.0.7",
"@types/node": "^22.0.2",
"@typescript-eslint/eslint-plugin": "^8.0.0",
"@typescript-eslint/parser": "^8.0.0",
"@vercel/git-hooks": "^1.0.0",

@@ -76,7 +77,7 @@ "eslint": "^8.32.0",

"lodash-es": "^4.17.21",
"mocha": "^10.2.0",
"mocha": "^10.7.0",
"should": "^13.2.3",
"tiny-chalk": "^3.0.1",
"ts-node": "^10.9.1",
"typescript": "^4.9.4"
"ts-node": "^10.9.2",
"typescript": "^5.5.4"
},

@@ -83,0 +84,0 @@ "engines": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc