import * as v from 'valibot'; declare const metaSchema: v.ObjectSchema<{ readonly name: v.SchemaWithPipe, () => undefined>, v.StringSchema<"\"name\" is required">]>; readonly namespace: v.OptionalSchema, undefined>; readonly copyright: v.OptionalSchema, undefined>; readonly version: v.SchemaWithPipe, () => undefined>, v.StringSchema<"\"version\" is required">]>; readonly description: v.OptionalSchema, undefined>; readonly icon: v.OptionalSchema, undefined>; readonly grant: v.OptionalSchema, v.LiteralSchema<"GM.addStyle", undefined>, v.LiteralSchema<"GM.addValueChangeListener", undefined>, v.LiteralSchema<"GM.deleteValue", undefined>, v.LiteralSchema<"GM.deleteValues", undefined>, v.LiteralSchema<"GM.download", undefined>, v.LiteralSchema<"GM.getResourceText", undefined>, v.LiteralSchema<"GM.getResourceUrl", undefined>, v.LiteralSchema<"GM.getTab", undefined>, v.LiteralSchema<"GM.getTabs", undefined>, v.LiteralSchema<"GM.getValue", undefined>, v.LiteralSchema<"GM.getValues", undefined>, v.LiteralSchema<"GM.info", undefined>, v.LiteralSchema<"GM.listValues", undefined>, v.LiteralSchema<"GM.log", undefined>, v.LiteralSchema<"GM.notification", undefined>, v.LiteralSchema<"GM.openInTab", undefined>, v.LiteralSchema<"GM.registerMenuCommand", undefined>, v.LiteralSchema<"GM.removeValueChangeListener", undefined>, v.LiteralSchema<"GM.saveTab", undefined>, v.LiteralSchema<"GM.setClipboard", undefined>, v.LiteralSchema<"GM.setValue", undefined>, v.LiteralSchema<"GM.setValues", undefined>, v.LiteralSchema<"GM.unregisterMenuCommand", undefined>, v.LiteralSchema<"GM.xmlHttpRequest", undefined>, v.LiteralSchema<"GM_addElement", undefined>, v.LiteralSchema<"GM_addStyle", undefined>, v.LiteralSchema<"GM_addValueChangeListener", undefined>, v.LiteralSchema<"GM_cookie", undefined>, v.LiteralSchema<"GM_deleteValue", undefined>, v.LiteralSchema<"GM_deleteValues", undefined>, v.LiteralSchema<"GM_download", undefined>, v.LiteralSchema<"GM_getResourceText", undefined>, v.LiteralSchema<"GM_getResourceURL", undefined>, v.LiteralSchema<"GM_getTab", undefined>, v.LiteralSchema<"GM_getTabs", undefined>, v.LiteralSchema<"GM_getValue", undefined>, v.LiteralSchema<"GM_getValues", undefined>, v.LiteralSchema<"GM_info", undefined>, v.LiteralSchema<"GM_listValues", undefined>, v.LiteralSchema<"GM_log", undefined>, v.LiteralSchema<"GM_notification", undefined>, v.LiteralSchema<"GM_openInTab", undefined>, v.LiteralSchema<"GM_registerMenuCommand", undefined>, v.LiteralSchema<"GM_removeValueChangeListener", undefined>, v.LiteralSchema<"GM_saveTab", undefined>, v.LiteralSchema<"GM_setClipboard", undefined>, v.LiteralSchema<"GM_setValue", undefined>, v.LiteralSchema<"GM_setValues", undefined>, v.LiteralSchema<"GM_unregisterMenuCommand", undefined>, v.LiteralSchema<"GM_webRequest", undefined>, v.LiteralSchema<"GM_xmlhttpRequest", undefined>, v.LiteralSchema<"unsafeWindow", undefined>, v.LiteralSchema<"window.close", undefined>, v.LiteralSchema<"window.focus", undefined>, v.LiteralSchema<"window.onurlchange", undefined>], undefined>, undefined>, v.LiteralSchema<"none", undefined>], undefined>, readonly []>; readonly author: v.OptionalSchema, undefined>; readonly homepage: v.OptionalSchema, undefined>; readonly antiFeature: v.OptionalSchema, v.LiteralSchema<"tracking", undefined>, v.LiteralSchema<"miner", undefined>], undefined>; readonly description: v.StringSchema; }, undefined>, undefined>, readonly []>; readonly require: v.OptionalSchema, undefined>, readonly []>; readonly resource: v.OptionalSchema; readonly url: v.StringSchema; }, undefined>, undefined>, readonly []>; readonly match: v.OptionalSchema, undefined>, readonly []>; readonly excludeMatch: v.OptionalSchema, undefined>, readonly []>; readonly include: v.OptionalSchema, undefined>, readonly []>; readonly exclude: v.OptionalSchema, undefined>, readonly []>; readonly runAt: v.OptionalSchema, v.LiteralSchema<"document-start", undefined>, v.LiteralSchema<"document-body", undefined>, v.LiteralSchema<"document-idle", undefined>, v.LiteralSchema<"context-menu", undefined>], undefined>, undefined>; readonly runIn: v.OptionalSchema, undefined>, readonly []>; readonly sandbox: v.OptionalSchema, v.LiteralSchema<"JavaScript", undefined>, v.LiteralSchema<"DOM", undefined>], undefined>, undefined>; readonly injectInto: v.OptionalSchema, v.LiteralSchema<"content", undefined>, v.LiteralSchema<"auto", undefined>], undefined>, undefined>; readonly tag: v.OptionalSchema, undefined>, readonly []>; readonly connect: v.OptionalSchema, undefined>, readonly []>; readonly noframes: v.OptionalSchema, false>; readonly updateURL: v.OptionalSchema, undefined>; readonly downloadURL: v.OptionalSchema, undefined>; readonly supportURL: v.OptionalSchema, undefined>; readonly unwrap: v.OptionalSchema, false>; readonly topLevelAwait: v.OptionalSchema, false>; }, undefined>; type Meta = v.InferInput; /** Useful to flatten the type output to improve type hints shown in editors. And also to transform an interface into a type to aide with assignability. @example ``` import type {Simplify} from 'type-fest'; type PositionProps = { top: number; left: number; }; type SizeProps = { width: number; height: number; }; // In your editor, hovering over `Props` will show a flattened object with all the properties. type Props = Simplify; ``` Sometimes it is desired to pass a value as a function argument that has a different type. At first inspection it may seem assignable, and then you discover it is not because the `value`'s type definition was defined as an interface. In the following example, `fn` requires an argument of type `Record`. If the value is defined as a literal, then it is assignable. And if the `value` is defined as type using the `Simplify` utility the value is assignable. But if the `value` is defined as an interface, it is not assignable because the interface is not sealed and elsewhere a non-string property could be added to the interface. If the type definition must be an interface (perhaps it was defined in a third-party npm package), then the `value` can be defined as `const value: Simplify = ...`. Then `value` will be assignable to the `fn` argument. Or the `value` can be cast as `Simplify` if you can't re-declare the `value`. @example ``` import type {Simplify} from 'type-fest'; interface SomeInterface { foo: number; bar?: string; baz: number | undefined; } type SomeType = { foo: number; bar?: string; baz: number | undefined; }; const literal = {foo: 123, bar: 'hello', baz: 456}; const someType: SomeType = literal; const someInterface: SomeInterface = literal; declare function fn(object: Record): void; fn(literal); // Good: literal object type is sealed fn(someType); // Good: type is sealed // @ts-expect-error fn(someInterface); // Error: Index signature for type 'string' is missing in type 'someInterface'. Because `interface` can be re-opened fn(someInterface as Simplify); // Good: transform an `interface` into a `type` ``` @link https://github.com/microsoft/TypeScript/issues/15300 @see {@link SimplifyDeep} @category Object */ type Simplify = {[KeyType in keyof T]: T[KeyType]} & {}; /** Omit any index signatures from the given object type, leaving only explicitly defined properties. This is the counterpart of `PickIndexSignature`. Use-cases: - Remove overly permissive signatures from third-party types. This type was taken from this [StackOverflow answer](https://stackoverflow.com/a/68261113/420747). It relies on the fact that an empty object (`{}`) is assignable to an object with just an index signature, like `Record`, but not to an object with explicitly defined keys, like `Record<'foo' | 'bar', unknown>`. (The actual value type, `unknown`, is irrelevant and could be any type. Only the key type matters.) ``` const indexed: Record = {}; // Allowed // @ts-expect-error const keyed: Record<'foo', unknown> = {}; // Error // TS2739: Type '{}' is missing the following properties from type 'Record<"foo" | "bar", unknown>': foo, bar ``` Instead of causing a type error like the above, you can also use a [conditional type](https://www.typescriptlang.org/docs/handbook/2/conditional-types.html) to test whether a type is assignable to another: ``` type Indexed = {} extends Record ? '✅ `{}` is assignable to `Record`' : '❌ `{}` is NOT assignable to `Record`'; type IndexedResult = Indexed; //=> '✅ `{}` is assignable to `Record`' type Keyed = {} extends Record<'foo' | 'bar', unknown> ? '✅ `{}` is assignable to `Record<\'foo\' | \'bar\', unknown>`' : '❌ `{}` is NOT assignable to `Record<\'foo\' | \'bar\', unknown>`'; type KeyedResult = Keyed; //=> '❌ `{}` is NOT assignable to `Record<\'foo\' | \'bar\', unknown>`' ``` Using a [mapped type](https://www.typescriptlang.org/docs/handbook/2/mapped-types.html#further-exploration), you can then check for each `KeyType` of `ObjectType`... ``` type OmitIndexSignature = { [KeyType in keyof ObjectType // Map each key of `ObjectType`... ]: ObjectType[KeyType]; // ...to its original value, i.e. `OmitIndexSignature == Foo`. }; ``` ...whether an empty object (`{}`) would be assignable to an object with that `KeyType` (`Record`)... ``` type OmitIndexSignature = { [KeyType in keyof ObjectType // Is `{}` assignable to `Record`? as {} extends Record ? never // ✅ `{}` is assignable to `Record` : KeyType // ❌ `{}` is NOT assignable to `Record` ]: ObjectType[KeyType]; }; ``` If `{}` is assignable, it means that `KeyType` is an index signature and we want to remove it. If it is not assignable, `KeyType` is a "real" key and we want to keep it. @example ``` import type {OmitIndexSignature} from 'type-fest'; type Example = { // These index signatures will be removed. [x: string]: any; [x: number]: any; [x: symbol]: any; [x: `head-${string}`]: string; [x: `${string}-tail`]: string; [x: `head-${string}-tail`]: string; [x: `${bigint}`]: string; [x: `embedded-${number}`]: string; // These explicitly defined keys will remain. foo: 'bar'; qux?: 'baz'; }; type ExampleWithoutIndexSignatures = OmitIndexSignature; //=> {foo: 'bar'; qux?: 'baz'} ``` @see {@link PickIndexSignature} @category Object */ type OmitIndexSignature = { [KeyType in keyof ObjectType as {} extends Record ? never : KeyType]: ObjectType[KeyType]; }; /** Pick only index signatures from the given object type, leaving out all explicitly defined properties. This is the counterpart of `OmitIndexSignature`. @example ``` import type {PickIndexSignature} from 'type-fest'; declare const symbolKey: unique symbol; type Example = { // These index signatures will remain. [x: string]: unknown; [x: number]: unknown; [x: symbol]: unknown; [x: `head-${string}`]: string; [x: `${string}-tail`]: string; [x: `head-${string}-tail`]: string; [x: `${bigint}`]: string; [x: `embedded-${number}`]: string; // These explicitly defined keys will be removed. ['kebab-case-key']: string; [symbolKey]: string; foo: 'bar'; qux?: 'baz'; }; type ExampleIndexSignature = PickIndexSignature; // { // [x: string]: unknown; // [x: number]: unknown; // [x: symbol]: unknown; // [x: `head-${string}`]: string; // [x: `${string}-tail`]: string; // [x: `head-${string}-tail`]: string; // [x: `${bigint}`]: string; // [x: `embedded-${number}`]: string; // } ``` @see {@link OmitIndexSignature} @category Object */ type PickIndexSignature = { [KeyType in keyof ObjectType as {} extends Record ? KeyType : never]: ObjectType[KeyType]; }; // Merges two objects without worrying about index signatures. type SimpleMerge = { [Key in keyof Destination as Key extends keyof Source ? never : Key]: Destination[Key]; } & Source; /** Merge two types into a new type. Keys of the second type overrides keys of the first type. @example ``` import type {Merge} from 'type-fest'; type Foo = { [x: string]: unknown; [x: number]: unknown; foo: string; bar: symbol; }; type Bar = { [x: number]: number; [x: symbol]: unknown; bar: Date; baz: boolean; }; export type FooBar = Merge; //=> { // [x: string]: unknown; // [x: number]: number; // [x: symbol]: unknown; // foo: string; // bar: Date; // baz: boolean; // } ``` Note: If you want a merge type that more accurately reflects the runtime behavior of object spread or `Object.assign`, refer to the {@link ObjectMerge} type. @see {@link ObjectMerge} @category Object */ type Merge = Simplify< SimpleMerge, PickIndexSignature> & SimpleMerge, OmitIndexSignature> >; /** Override existing properties of the given type. Similar to `Merge`, but enforces that the original type has the properties you want to override. This is useful when you want to override existing properties with a different type and make sure that these properties really exist in the original. @example ``` import type {OverrideProperties} from 'type-fest'; type Foo = { a: string; b: string; }; type Bar = OverrideProperties; //=> {a: string; b: number} // @ts-expect-error type Baz = OverrideProperties; // Error, type '{ c: number; }' does not satisfy the constraint '{ c: never; }' // @ts-expect-error type Fizz = OverrideProperties; // Error, type '{ b: number; c: number; }' does not satisfy the constraint '{ b: number; c: never; }' ``` @category Object */ type OverrideProperties< TOriginal, // This first bit where we use `Partial` is to enable autocomplete // and the second bit with the mapped type is what enforces that we don't try // to override properties that doesn't exist in the original type. TOverride extends Partial> & { [Key in keyof TOverride]: Key extends keyof TOriginal ? TOverride[Key] : never; }, > = Merge; declare const defaultMetaSchema: Omit; readonly downloadURL: v.FunctionSchema; readonly name: v.SchemaWithPipe, () => undefined>, v.StringSchema<"\"name\" is required">]>; readonly namespace: v.OptionalSchema, undefined>; readonly copyright: v.OptionalSchema, undefined>; readonly version: v.SchemaWithPipe, () => undefined>, v.StringSchema<"\"version\" is required">]>; readonly description: v.OptionalSchema, undefined>; readonly icon: v.OptionalSchema, undefined>; readonly grant: v.OptionalSchema, v.LiteralSchema<"GM.addStyle", undefined>, v.LiteralSchema<"GM.addValueChangeListener", undefined>, v.LiteralSchema<"GM.deleteValue", undefined>, v.LiteralSchema<"GM.deleteValues", undefined>, v.LiteralSchema<"GM.download", undefined>, v.LiteralSchema<"GM.getResourceText", undefined>, v.LiteralSchema<"GM.getResourceUrl", undefined>, v.LiteralSchema<"GM.getTab", undefined>, v.LiteralSchema<"GM.getTabs", undefined>, v.LiteralSchema<"GM.getValue", undefined>, v.LiteralSchema<"GM.getValues", undefined>, v.LiteralSchema<"GM.info", undefined>, v.LiteralSchema<"GM.listValues", undefined>, v.LiteralSchema<"GM.log", undefined>, v.LiteralSchema<"GM.notification", undefined>, v.LiteralSchema<"GM.openInTab", undefined>, v.LiteralSchema<"GM.registerMenuCommand", undefined>, v.LiteralSchema<"GM.removeValueChangeListener", undefined>, v.LiteralSchema<"GM.saveTab", undefined>, v.LiteralSchema<"GM.setClipboard", undefined>, v.LiteralSchema<"GM.setValue", undefined>, v.LiteralSchema<"GM.setValues", undefined>, v.LiteralSchema<"GM.unregisterMenuCommand", undefined>, v.LiteralSchema<"GM.xmlHttpRequest", undefined>, v.LiteralSchema<"GM_addElement", undefined>, v.LiteralSchema<"GM_addStyle", undefined>, v.LiteralSchema<"GM_addValueChangeListener", undefined>, v.LiteralSchema<"GM_cookie", undefined>, v.LiteralSchema<"GM_deleteValue", undefined>, v.LiteralSchema<"GM_deleteValues", undefined>, v.LiteralSchema<"GM_download", undefined>, v.LiteralSchema<"GM_getResourceText", undefined>, v.LiteralSchema<"GM_getResourceURL", undefined>, v.LiteralSchema<"GM_getTab", undefined>, v.LiteralSchema<"GM_getTabs", undefined>, v.LiteralSchema<"GM_getValue", undefined>, v.LiteralSchema<"GM_getValues", undefined>, v.LiteralSchema<"GM_info", undefined>, v.LiteralSchema<"GM_listValues", undefined>, v.LiteralSchema<"GM_log", undefined>, v.LiteralSchema<"GM_notification", undefined>, v.LiteralSchema<"GM_openInTab", undefined>, v.LiteralSchema<"GM_registerMenuCommand", undefined>, v.LiteralSchema<"GM_removeValueChangeListener", undefined>, v.LiteralSchema<"GM_saveTab", undefined>, v.LiteralSchema<"GM_setClipboard", undefined>, v.LiteralSchema<"GM_setValue", undefined>, v.LiteralSchema<"GM_setValues", undefined>, v.LiteralSchema<"GM_unregisterMenuCommand", undefined>, v.LiteralSchema<"GM_webRequest", undefined>, v.LiteralSchema<"GM_xmlhttpRequest", undefined>, v.LiteralSchema<"unsafeWindow", undefined>, v.LiteralSchema<"window.close", undefined>, v.LiteralSchema<"window.focus", undefined>, v.LiteralSchema<"window.onurlchange", undefined>], undefined>, undefined>, v.LiteralSchema<"none", undefined>], undefined>, readonly []>; readonly author: v.OptionalSchema, undefined>; readonly homepage: v.OptionalSchema, undefined>; readonly antiFeature: v.OptionalSchema, v.LiteralSchema<"tracking", undefined>, v.LiteralSchema<"miner", undefined>], undefined>; readonly description: v.StringSchema; }, undefined>, undefined>, readonly []>; readonly require: v.OptionalSchema, undefined>, readonly []>; readonly resource: v.OptionalSchema; readonly url: v.StringSchema; }, undefined>, undefined>, readonly []>; readonly match: v.OptionalSchema, undefined>, readonly []>; readonly excludeMatch: v.OptionalSchema, undefined>, readonly []>; readonly include: v.OptionalSchema, undefined>, readonly []>; readonly exclude: v.OptionalSchema, undefined>, readonly []>; readonly runAt: v.OptionalSchema, v.LiteralSchema<"document-start", undefined>, v.LiteralSchema<"document-body", undefined>, v.LiteralSchema<"document-idle", undefined>, v.LiteralSchema<"context-menu", undefined>], undefined>, undefined>; readonly runIn: v.OptionalSchema, undefined>, readonly []>; readonly sandbox: v.OptionalSchema, v.LiteralSchema<"JavaScript", undefined>, v.LiteralSchema<"DOM", undefined>], undefined>, undefined>; readonly injectInto: v.OptionalSchema, v.LiteralSchema<"content", undefined>, v.LiteralSchema<"auto", undefined>], undefined>, undefined>; readonly tag: v.OptionalSchema, undefined>, readonly []>; readonly connect: v.OptionalSchema, undefined>, readonly []>; readonly noframes: v.OptionalSchema, false>; readonly supportURL: v.OptionalSchema, undefined>; readonly unwrap: v.OptionalSchema, false>; readonly topLevelAwait: v.OptionalSchema, false>; }, undefined>, "~types" | "~run" | "~standard" | "entries"> & { readonly entries: { readonly updateURL: v.OptionalSchema, undefined>; readonly downloadURL: v.OptionalSchema, undefined>; readonly name: v.OptionalSchema, () => undefined>, v.StringSchema<"\"name\" is required">]>, undefined>; readonly namespace: v.OptionalSchema, undefined>, undefined>; readonly copyright: v.OptionalSchema, undefined>, undefined>; readonly version: v.OptionalSchema, () => undefined>, v.StringSchema<"\"version\" is required">]>, undefined>; readonly description: v.OptionalSchema, undefined>, undefined>; readonly icon: v.OptionalSchema, undefined>, undefined>; readonly grant: v.OptionalSchema, v.LiteralSchema<"GM.addStyle", undefined>, v.LiteralSchema<"GM.addValueChangeListener", undefined>, v.LiteralSchema<"GM.deleteValue", undefined>, v.LiteralSchema<"GM.deleteValues", undefined>, v.LiteralSchema<"GM.download", undefined>, v.LiteralSchema<"GM.getResourceText", undefined>, v.LiteralSchema<"GM.getResourceUrl", undefined>, v.LiteralSchema<"GM.getTab", undefined>, v.LiteralSchema<"GM.getTabs", undefined>, v.LiteralSchema<"GM.getValue", undefined>, v.LiteralSchema<"GM.getValues", undefined>, v.LiteralSchema<"GM.info", undefined>, v.LiteralSchema<"GM.listValues", undefined>, v.LiteralSchema<"GM.log", undefined>, v.LiteralSchema<"GM.notification", undefined>, v.LiteralSchema<"GM.openInTab", undefined>, v.LiteralSchema<"GM.registerMenuCommand", undefined>, v.LiteralSchema<"GM.removeValueChangeListener", undefined>, v.LiteralSchema<"GM.saveTab", undefined>, v.LiteralSchema<"GM.setClipboard", undefined>, v.LiteralSchema<"GM.setValue", undefined>, v.LiteralSchema<"GM.setValues", undefined>, v.LiteralSchema<"GM.unregisterMenuCommand", undefined>, v.LiteralSchema<"GM.xmlHttpRequest", undefined>, v.LiteralSchema<"GM_addElement", undefined>, v.LiteralSchema<"GM_addStyle", undefined>, v.LiteralSchema<"GM_addValueChangeListener", undefined>, v.LiteralSchema<"GM_cookie", undefined>, v.LiteralSchema<"GM_deleteValue", undefined>, v.LiteralSchema<"GM_deleteValues", undefined>, v.LiteralSchema<"GM_download", undefined>, v.LiteralSchema<"GM_getResourceText", undefined>, v.LiteralSchema<"GM_getResourceURL", undefined>, v.LiteralSchema<"GM_getTab", undefined>, v.LiteralSchema<"GM_getTabs", undefined>, v.LiteralSchema<"GM_getValue", undefined>, v.LiteralSchema<"GM_getValues", undefined>, v.LiteralSchema<"GM_info", undefined>, v.LiteralSchema<"GM_listValues", undefined>, v.LiteralSchema<"GM_log", undefined>, v.LiteralSchema<"GM_notification", undefined>, v.LiteralSchema<"GM_openInTab", undefined>, v.LiteralSchema<"GM_registerMenuCommand", undefined>, v.LiteralSchema<"GM_removeValueChangeListener", undefined>, v.LiteralSchema<"GM_saveTab", undefined>, v.LiteralSchema<"GM_setClipboard", undefined>, v.LiteralSchema<"GM_setValue", undefined>, v.LiteralSchema<"GM_setValues", undefined>, v.LiteralSchema<"GM_unregisterMenuCommand", undefined>, v.LiteralSchema<"GM_webRequest", undefined>, v.LiteralSchema<"GM_xmlhttpRequest", undefined>, v.LiteralSchema<"unsafeWindow", undefined>, v.LiteralSchema<"window.close", undefined>, v.LiteralSchema<"window.focus", undefined>, v.LiteralSchema<"window.onurlchange", undefined>], undefined>, undefined>, v.LiteralSchema<"none", undefined>], undefined>, readonly []>, undefined>; readonly author: v.OptionalSchema, undefined>, undefined>; readonly homepage: v.OptionalSchema, undefined>, undefined>; readonly antiFeature: v.OptionalSchema, v.LiteralSchema<"tracking", undefined>, v.LiteralSchema<"miner", undefined>], undefined>; readonly description: v.StringSchema; }, undefined>, undefined>, readonly []>, undefined>; readonly require: v.OptionalSchema, undefined>, readonly []>, undefined>; readonly resource: v.OptionalSchema; readonly url: v.StringSchema; }, undefined>, undefined>, readonly []>, undefined>; readonly match: v.OptionalSchema, undefined>, readonly []>, undefined>; readonly excludeMatch: v.OptionalSchema, undefined>, readonly []>, undefined>; readonly include: v.OptionalSchema, undefined>, readonly []>, undefined>; readonly exclude: v.OptionalSchema, undefined>, readonly []>, undefined>; readonly runAt: v.OptionalSchema, v.LiteralSchema<"document-start", undefined>, v.LiteralSchema<"document-body", undefined>, v.LiteralSchema<"document-idle", undefined>, v.LiteralSchema<"context-menu", undefined>], undefined>, undefined>, undefined>; readonly runIn: v.OptionalSchema, undefined>, readonly []>, undefined>; readonly sandbox: v.OptionalSchema, v.LiteralSchema<"JavaScript", undefined>, v.LiteralSchema<"DOM", undefined>], undefined>, undefined>, undefined>; readonly injectInto: v.OptionalSchema, v.LiteralSchema<"content", undefined>, v.LiteralSchema<"auto", undefined>], undefined>, undefined>, undefined>; readonly tag: v.OptionalSchema, undefined>, readonly []>, undefined>; readonly connect: v.OptionalSchema, undefined>, readonly []>, undefined>; readonly noframes: v.OptionalSchema, false>, undefined>; readonly supportURL: v.OptionalSchema, undefined>, undefined>; readonly unwrap: v.OptionalSchema, false>, undefined>; readonly topLevelAwait: v.OptionalSchema, false>, undefined>; }; readonly "~standard": v.StandardProps<{ updateURL?: ((...args: unknown[]) => unknown) | undefined; downloadURL?: ((...args: unknown[]) => unknown) | undefined; name?: string | undefined; namespace?: string | undefined; copyright?: string | undefined; version?: string | undefined; description?: string | undefined; icon?: string | undefined; grant?: ("GM.addElement" | "GM.addStyle" | "GM.addValueChangeListener" | "GM.deleteValue" | "GM.deleteValues" | "GM.download" | "GM.getResourceText" | "GM.getResourceUrl" | "GM.getTab" | "GM.getTabs" | "GM.getValue" | "GM.getValues" | "GM.info" | "GM.listValues" | "GM.log" | "GM.notification" | "GM.openInTab" | "GM.registerMenuCommand" | "GM.removeValueChangeListener" | "GM.saveTab" | "GM.setClipboard" | "GM.setValue" | "GM.setValues" | "GM.unregisterMenuCommand" | "GM.xmlHttpRequest" | "GM_addElement" | "GM_addStyle" | "GM_addValueChangeListener" | "GM_cookie" | "GM_deleteValue" | "GM_deleteValues" | "GM_download" | "GM_getResourceText" | "GM_getResourceURL" | "GM_getTab" | "GM_getTabs" | "GM_getValue" | "GM_getValues" | "GM_info" | "GM_listValues" | "GM_log" | "GM_notification" | "GM_openInTab" | "GM_registerMenuCommand" | "GM_removeValueChangeListener" | "GM_saveTab" | "GM_setClipboard" | "GM_setValue" | "GM_setValues" | "GM_unregisterMenuCommand" | "GM_webRequest" | "GM_xmlhttpRequest" | "unsafeWindow" | "window.close" | "window.focus" | "window.onurlchange")[] | "none" | undefined; author?: string | undefined; homepage?: string | undefined; antiFeature?: { type: "ads" | "tracking" | "miner"; description: string; }[] | undefined; require?: string[] | undefined; resource?: { name: string; url: string; }[] | undefined; match?: string[] | undefined; excludeMatch?: string[] | undefined; include?: string[] | undefined; exclude?: string[] | undefined; runAt?: "document-end" | "document-start" | "document-body" | "document-idle" | "context-menu" | undefined; runIn?: string[] | undefined; sandbox?: "raw" | "JavaScript" | "DOM" | undefined; injectInto?: "page" | "content" | "auto" | undefined; tag?: string[] | undefined; connect?: string[] | undefined; noframes?: boolean | undefined; supportURL?: string | undefined; unwrap?: boolean | undefined; topLevelAwait?: boolean | undefined; }, { updateURL?: ((...args: unknown[]) => unknown) | undefined; downloadURL?: ((...args: unknown[]) => unknown) | undefined; name?: string | undefined; namespace?: string | undefined; copyright?: string | undefined; version?: string | undefined; description?: string | undefined; icon?: string | undefined; grant?: ("GM.addElement" | "GM.addStyle" | "GM.addValueChangeListener" | "GM.deleteValue" | "GM.deleteValues" | "GM.download" | "GM.getResourceText" | "GM.getResourceUrl" | "GM.getTab" | "GM.getTabs" | "GM.getValue" | "GM.getValues" | "GM.info" | "GM.listValues" | "GM.log" | "GM.notification" | "GM.openInTab" | "GM.registerMenuCommand" | "GM.removeValueChangeListener" | "GM.saveTab" | "GM.setClipboard" | "GM.setValue" | "GM.setValues" | "GM.unregisterMenuCommand" | "GM.xmlHttpRequest" | "GM_addElement" | "GM_addStyle" | "GM_addValueChangeListener" | "GM_cookie" | "GM_deleteValue" | "GM_deleteValues" | "GM_download" | "GM_getResourceText" | "GM_getResourceURL" | "GM_getTab" | "GM_getTabs" | "GM_getValue" | "GM_getValues" | "GM_info" | "GM_listValues" | "GM_log" | "GM_notification" | "GM_openInTab" | "GM_registerMenuCommand" | "GM_removeValueChangeListener" | "GM_saveTab" | "GM_setClipboard" | "GM_setValue" | "GM_setValues" | "GM_unregisterMenuCommand" | "GM_webRequest" | "GM_xmlhttpRequest" | "unsafeWindow" | "window.close" | "window.focus" | "window.onurlchange")[] | "none" | undefined; author?: string | undefined; homepage?: string | undefined; antiFeature?: { type: "ads" | "tracking" | "miner"; description: string; }[] | undefined; require?: string[] | undefined; resource?: { name: string; url: string; }[] | undefined; match?: string[] | undefined; excludeMatch?: string[] | undefined; include?: string[] | undefined; exclude?: string[] | undefined; runAt?: "document-end" | "document-start" | "document-body" | "document-idle" | "context-menu" | undefined; runIn?: string[] | undefined; sandbox?: "raw" | "JavaScript" | "DOM" | undefined; injectInto?: "page" | "content" | "auto" | undefined; tag?: string[] | undefined; connect?: string[] | undefined; noframes?: boolean | undefined; supportURL?: string | undefined; unwrap?: boolean | undefined; topLevelAwait?: boolean | undefined; }>; readonly "~run": (dataset: v.UnknownDataset, config: v.Config>) => v.OutputDataset<{ updateURL?: ((...args: unknown[]) => unknown) | undefined; downloadURL?: ((...args: unknown[]) => unknown) | undefined; name?: string | undefined; namespace?: string | undefined; copyright?: string | undefined; version?: string | undefined; description?: string | undefined; icon?: string | undefined; grant?: ("GM.addElement" | "GM.addStyle" | "GM.addValueChangeListener" | "GM.deleteValue" | "GM.deleteValues" | "GM.download" | "GM.getResourceText" | "GM.getResourceUrl" | "GM.getTab" | "GM.getTabs" | "GM.getValue" | "GM.getValues" | "GM.info" | "GM.listValues" | "GM.log" | "GM.notification" | "GM.openInTab" | "GM.registerMenuCommand" | "GM.removeValueChangeListener" | "GM.saveTab" | "GM.setClipboard" | "GM.setValue" | "GM.setValues" | "GM.unregisterMenuCommand" | "GM.xmlHttpRequest" | "GM_addElement" | "GM_addStyle" | "GM_addValueChangeListener" | "GM_cookie" | "GM_deleteValue" | "GM_deleteValues" | "GM_download" | "GM_getResourceText" | "GM_getResourceURL" | "GM_getTab" | "GM_getTabs" | "GM_getValue" | "GM_getValues" | "GM_info" | "GM_listValues" | "GM_log" | "GM_notification" | "GM_openInTab" | "GM_registerMenuCommand" | "GM_removeValueChangeListener" | "GM_saveTab" | "GM_setClipboard" | "GM_setValue" | "GM_setValues" | "GM_unregisterMenuCommand" | "GM_webRequest" | "GM_xmlhttpRequest" | "unsafeWindow" | "window.close" | "window.focus" | "window.onurlchange")[] | "none" | undefined; author?: string | undefined; homepage?: string | undefined; antiFeature?: { type: "ads" | "tracking" | "miner"; description: string; }[] | undefined; require?: string[] | undefined; resource?: { name: string; url: string; }[] | undefined; match?: string[] | undefined; excludeMatch?: string[] | undefined; include?: string[] | undefined; exclude?: string[] | undefined; runAt?: "document-end" | "document-start" | "document-body" | "document-idle" | "context-menu" | undefined; runIn?: string[] | undefined; sandbox?: "raw" | "JavaScript" | "DOM" | undefined; injectInto?: "page" | "content" | "auto" | undefined; tag?: string[] | undefined; connect?: string[] | undefined; noframes?: boolean | undefined; supportURL?: string | undefined; unwrap?: boolean | undefined; topLevelAwait?: boolean | undefined; }, v.StringIssue | v.ArrayIssue | v.LiteralIssue | v.UnionIssue | v.UnionIssue> | v.ObjectIssue | v.BooleanIssue | v.FunctionIssue>; readonly "~types"?: { readonly input: { updateURL?: ((...args: unknown[]) => unknown) | undefined; downloadURL?: ((...args: unknown[]) => unknown) | undefined; name?: string | undefined; namespace?: string | undefined; copyright?: string | undefined; version?: string | undefined; description?: string | undefined; icon?: string | undefined; grant?: ("GM.addElement" | "GM.addStyle" | "GM.addValueChangeListener" | "GM.deleteValue" | "GM.deleteValues" | "GM.download" | "GM.getResourceText" | "GM.getResourceUrl" | "GM.getTab" | "GM.getTabs" | "GM.getValue" | "GM.getValues" | "GM.info" | "GM.listValues" | "GM.log" | "GM.notification" | "GM.openInTab" | "GM.registerMenuCommand" | "GM.removeValueChangeListener" | "GM.saveTab" | "GM.setClipboard" | "GM.setValue" | "GM.setValues" | "GM.unregisterMenuCommand" | "GM.xmlHttpRequest" | "GM_addElement" | "GM_addStyle" | "GM_addValueChangeListener" | "GM_cookie" | "GM_deleteValue" | "GM_deleteValues" | "GM_download" | "GM_getResourceText" | "GM_getResourceURL" | "GM_getTab" | "GM_getTabs" | "GM_getValue" | "GM_getValues" | "GM_info" | "GM_listValues" | "GM_log" | "GM_notification" | "GM_openInTab" | "GM_registerMenuCommand" | "GM_removeValueChangeListener" | "GM_saveTab" | "GM_setClipboard" | "GM_setValue" | "GM_setValues" | "GM_unregisterMenuCommand" | "GM_webRequest" | "GM_xmlhttpRequest" | "unsafeWindow" | "window.close" | "window.focus" | "window.onurlchange")[] | "none" | undefined; author?: string | undefined; homepage?: string | undefined; antiFeature?: { type: "ads" | "tracking" | "miner"; description: string; }[] | undefined; require?: string[] | undefined; resource?: { name: string; url: string; }[] | undefined; match?: string[] | undefined; excludeMatch?: string[] | undefined; include?: string[] | undefined; exclude?: string[] | undefined; runAt?: "document-end" | "document-start" | "document-body" | "document-idle" | "context-menu" | undefined; runIn?: string[] | undefined; sandbox?: "raw" | "JavaScript" | "DOM" | undefined; injectInto?: "page" | "content" | "auto" | undefined; tag?: string[] | undefined; connect?: string[] | undefined; noframes?: boolean | undefined; supportURL?: string | undefined; unwrap?: boolean | undefined; topLevelAwait?: boolean | undefined; }; readonly output: { updateURL?: ((...args: unknown[]) => unknown) | undefined; downloadURL?: ((...args: unknown[]) => unknown) | undefined; name?: string | undefined; namespace?: string | undefined; copyright?: string | undefined; version?: string | undefined; description?: string | undefined; icon?: string | undefined; grant?: ("GM.addElement" | "GM.addStyle" | "GM.addValueChangeListener" | "GM.deleteValue" | "GM.deleteValues" | "GM.download" | "GM.getResourceText" | "GM.getResourceUrl" | "GM.getTab" | "GM.getTabs" | "GM.getValue" | "GM.getValues" | "GM.info" | "GM.listValues" | "GM.log" | "GM.notification" | "GM.openInTab" | "GM.registerMenuCommand" | "GM.removeValueChangeListener" | "GM.saveTab" | "GM.setClipboard" | "GM.setValue" | "GM.setValues" | "GM.unregisterMenuCommand" | "GM.xmlHttpRequest" | "GM_addElement" | "GM_addStyle" | "GM_addValueChangeListener" | "GM_cookie" | "GM_deleteValue" | "GM_deleteValues" | "GM_download" | "GM_getResourceText" | "GM_getResourceURL" | "GM_getTab" | "GM_getTabs" | "GM_getValue" | "GM_getValues" | "GM_info" | "GM_listValues" | "GM_log" | "GM_notification" | "GM_openInTab" | "GM_registerMenuCommand" | "GM_removeValueChangeListener" | "GM_saveTab" | "GM_setClipboard" | "GM_setValue" | "GM_setValues" | "GM_unregisterMenuCommand" | "GM_webRequest" | "GM_xmlhttpRequest" | "unsafeWindow" | "window.close" | "window.focus" | "window.onurlchange")[] | "none" | undefined; author?: string | undefined; homepage?: string | undefined; antiFeature?: { type: "ads" | "tracking" | "miner"; description: string; }[] | undefined; require?: string[] | undefined; resource?: { name: string; url: string; }[] | undefined; match?: string[] | undefined; excludeMatch?: string[] | undefined; include?: string[] | undefined; exclude?: string[] | undefined; runAt?: "document-end" | "document-start" | "document-body" | "document-idle" | "context-menu" | undefined; runIn?: string[] | undefined; sandbox?: "raw" | "JavaScript" | "DOM" | undefined; injectInto?: "page" | "content" | "auto" | undefined; tag?: string[] | undefined; connect?: string[] | undefined; noframes?: boolean | undefined; supportURL?: string | undefined; unwrap?: boolean | undefined; topLevelAwait?: boolean | undefined; }; readonly issue: v.StringIssue | v.ArrayIssue | v.LiteralIssue | v.UnionIssue | v.UnionIssue> | v.ObjectIssue | v.BooleanIssue | v.FunctionIssue; } | undefined; }; type DefaultMeta = OverrideProperties, { updateURL?: (args: { scriptName: string; version: string; }) => string; downloadURL?: (args: { scriptName: string; version: string; }) => string; }>; declare const configSchema: v.ObjectSchema<{ readonly srcDir: v.OptionalSchema, "src">; readonly dist: v.OptionalSchema, "dist">; readonly dev: v.OptionalSchema, ".dev">; }, undefined>, { readonly production: "dist"; readonly dev: ".dev"; }>; readonly defaultMeta: v.OptionalSchema; readonly downloadURL: v.FunctionSchema; readonly name: v.SchemaWithPipe, () => undefined>, v.StringSchema<"\"name\" is required">]>; readonly namespace: v.OptionalSchema, undefined>; readonly copyright: v.OptionalSchema, undefined>; readonly version: v.SchemaWithPipe, () => undefined>, v.StringSchema<"\"version\" is required">]>; readonly description: v.OptionalSchema, undefined>; readonly icon: v.OptionalSchema, undefined>; readonly grant: v.OptionalSchema, v.LiteralSchema<"GM.addStyle", undefined>, v.LiteralSchema<"GM.addValueChangeListener", undefined>, v.LiteralSchema<"GM.deleteValue", undefined>, v.LiteralSchema<"GM.deleteValues", undefined>, v.LiteralSchema<"GM.download", undefined>, v.LiteralSchema<"GM.getResourceText", undefined>, v.LiteralSchema<"GM.getResourceUrl", undefined>, v.LiteralSchema<"GM.getTab", undefined>, v.LiteralSchema<"GM.getTabs", undefined>, v.LiteralSchema<"GM.getValue", undefined>, v.LiteralSchema<"GM.getValues", undefined>, v.LiteralSchema<"GM.info", undefined>, v.LiteralSchema<"GM.listValues", undefined>, v.LiteralSchema<"GM.log", undefined>, v.LiteralSchema<"GM.notification", undefined>, v.LiteralSchema<"GM.openInTab", undefined>, v.LiteralSchema<"GM.registerMenuCommand", undefined>, v.LiteralSchema<"GM.removeValueChangeListener", undefined>, v.LiteralSchema<"GM.saveTab", undefined>, v.LiteralSchema<"GM.setClipboard", undefined>, v.LiteralSchema<"GM.setValue", undefined>, v.LiteralSchema<"GM.setValues", undefined>, v.LiteralSchema<"GM.unregisterMenuCommand", undefined>, v.LiteralSchema<"GM.xmlHttpRequest", undefined>, v.LiteralSchema<"GM_addElement", undefined>, v.LiteralSchema<"GM_addStyle", undefined>, v.LiteralSchema<"GM_addValueChangeListener", undefined>, v.LiteralSchema<"GM_cookie", undefined>, v.LiteralSchema<"GM_deleteValue", undefined>, v.LiteralSchema<"GM_deleteValues", undefined>, v.LiteralSchema<"GM_download", undefined>, v.LiteralSchema<"GM_getResourceText", undefined>, v.LiteralSchema<"GM_getResourceURL", undefined>, v.LiteralSchema<"GM_getTab", undefined>, v.LiteralSchema<"GM_getTabs", undefined>, v.LiteralSchema<"GM_getValue", undefined>, v.LiteralSchema<"GM_getValues", undefined>, v.LiteralSchema<"GM_info", undefined>, v.LiteralSchema<"GM_listValues", undefined>, v.LiteralSchema<"GM_log", undefined>, v.LiteralSchema<"GM_notification", undefined>, v.LiteralSchema<"GM_openInTab", undefined>, v.LiteralSchema<"GM_registerMenuCommand", undefined>, v.LiteralSchema<"GM_removeValueChangeListener", undefined>, v.LiteralSchema<"GM_saveTab", undefined>, v.LiteralSchema<"GM_setClipboard", undefined>, v.LiteralSchema<"GM_setValue", undefined>, v.LiteralSchema<"GM_setValues", undefined>, v.LiteralSchema<"GM_unregisterMenuCommand", undefined>, v.LiteralSchema<"GM_webRequest", undefined>, v.LiteralSchema<"GM_xmlhttpRequest", undefined>, v.LiteralSchema<"unsafeWindow", undefined>, v.LiteralSchema<"window.close", undefined>, v.LiteralSchema<"window.focus", undefined>, v.LiteralSchema<"window.onurlchange", undefined>], undefined>, undefined>, v.LiteralSchema<"none", undefined>], undefined>, readonly []>; readonly author: v.OptionalSchema, undefined>; readonly homepage: v.OptionalSchema, undefined>; readonly antiFeature: v.OptionalSchema, v.LiteralSchema<"tracking", undefined>, v.LiteralSchema<"miner", undefined>], undefined>; readonly description: v.StringSchema; }, undefined>, undefined>, readonly []>; readonly require: v.OptionalSchema, undefined>, readonly []>; readonly resource: v.OptionalSchema; readonly url: v.StringSchema; }, undefined>, undefined>, readonly []>; readonly match: v.OptionalSchema, undefined>, readonly []>; readonly excludeMatch: v.OptionalSchema, undefined>, readonly []>; readonly include: v.OptionalSchema, undefined>, readonly []>; readonly exclude: v.OptionalSchema, undefined>, readonly []>; readonly runAt: v.OptionalSchema, v.LiteralSchema<"document-start", undefined>, v.LiteralSchema<"document-body", undefined>, v.LiteralSchema<"document-idle", undefined>, v.LiteralSchema<"context-menu", undefined>], undefined>, undefined>; readonly runIn: v.OptionalSchema, undefined>, readonly []>; readonly sandbox: v.OptionalSchema, v.LiteralSchema<"JavaScript", undefined>, v.LiteralSchema<"DOM", undefined>], undefined>, undefined>; readonly injectInto: v.OptionalSchema, v.LiteralSchema<"content", undefined>, v.LiteralSchema<"auto", undefined>], undefined>, undefined>; readonly tag: v.OptionalSchema, undefined>, readonly []>; readonly connect: v.OptionalSchema, undefined>, readonly []>; readonly noframes: v.OptionalSchema, false>; readonly supportURL: v.OptionalSchema, undefined>; readonly unwrap: v.OptionalSchema, false>; readonly topLevelAwait: v.OptionalSchema, false>; }, undefined>, "~types" | "~run" | "~standard" | "entries"> & { readonly entries: { readonly updateURL: v.OptionalSchema, undefined>; readonly downloadURL: v.OptionalSchema, undefined>; readonly name: v.OptionalSchema, () => undefined>, v.StringSchema<"\"name\" is required">]>, undefined>; readonly namespace: v.OptionalSchema, undefined>, undefined>; readonly copyright: v.OptionalSchema, undefined>, undefined>; readonly version: v.OptionalSchema, () => undefined>, v.StringSchema<"\"version\" is required">]>, undefined>; readonly description: v.OptionalSchema, undefined>, undefined>; readonly icon: v.OptionalSchema, undefined>, undefined>; readonly grant: v.OptionalSchema, v.LiteralSchema<"GM.addStyle", undefined>, v.LiteralSchema<"GM.addValueChangeListener", undefined>, v.LiteralSchema<"GM.deleteValue", undefined>, v.LiteralSchema<"GM.deleteValues", undefined>, v.LiteralSchema<"GM.download", undefined>, v.LiteralSchema<"GM.getResourceText", undefined>, v.LiteralSchema<"GM.getResourceUrl", undefined>, v.LiteralSchema<"GM.getTab", undefined>, v.LiteralSchema<"GM.getTabs", undefined>, v.LiteralSchema<"GM.getValue", undefined>, v.LiteralSchema<"GM.getValues", undefined>, v.LiteralSchema<"GM.info", undefined>, v.LiteralSchema<"GM.listValues", undefined>, v.LiteralSchema<"GM.log", undefined>, v.LiteralSchema<"GM.notification", undefined>, v.LiteralSchema<"GM.openInTab", undefined>, v.LiteralSchema<"GM.registerMenuCommand", undefined>, v.LiteralSchema<"GM.removeValueChangeListener", undefined>, v.LiteralSchema<"GM.saveTab", undefined>, v.LiteralSchema<"GM.setClipboard", undefined>, v.LiteralSchema<"GM.setValue", undefined>, v.LiteralSchema<"GM.setValues", undefined>, v.LiteralSchema<"GM.unregisterMenuCommand", undefined>, v.LiteralSchema<"GM.xmlHttpRequest", undefined>, v.LiteralSchema<"GM_addElement", undefined>, v.LiteralSchema<"GM_addStyle", undefined>, v.LiteralSchema<"GM_addValueChangeListener", undefined>, v.LiteralSchema<"GM_cookie", undefined>, v.LiteralSchema<"GM_deleteValue", undefined>, v.LiteralSchema<"GM_deleteValues", undefined>, v.LiteralSchema<"GM_download", undefined>, v.LiteralSchema<"GM_getResourceText", undefined>, v.LiteralSchema<"GM_getResourceURL", undefined>, v.LiteralSchema<"GM_getTab", undefined>, v.LiteralSchema<"GM_getTabs", undefined>, v.LiteralSchema<"GM_getValue", undefined>, v.LiteralSchema<"GM_getValues", undefined>, v.LiteralSchema<"GM_info", undefined>, v.LiteralSchema<"GM_listValues", undefined>, v.LiteralSchema<"GM_log", undefined>, v.LiteralSchema<"GM_notification", undefined>, v.LiteralSchema<"GM_openInTab", undefined>, v.LiteralSchema<"GM_registerMenuCommand", undefined>, v.LiteralSchema<"GM_removeValueChangeListener", undefined>, v.LiteralSchema<"GM_saveTab", undefined>, v.LiteralSchema<"GM_setClipboard", undefined>, v.LiteralSchema<"GM_setValue", undefined>, v.LiteralSchema<"GM_setValues", undefined>, v.LiteralSchema<"GM_unregisterMenuCommand", undefined>, v.LiteralSchema<"GM_webRequest", undefined>, v.LiteralSchema<"GM_xmlhttpRequest", undefined>, v.LiteralSchema<"unsafeWindow", undefined>, v.LiteralSchema<"window.close", undefined>, v.LiteralSchema<"window.focus", undefined>, v.LiteralSchema<"window.onurlchange", undefined>], undefined>, undefined>, v.LiteralSchema<"none", undefined>], undefined>, readonly []>, undefined>; readonly author: v.OptionalSchema, undefined>, undefined>; readonly homepage: v.OptionalSchema, undefined>, undefined>; readonly antiFeature: v.OptionalSchema, v.LiteralSchema<"tracking", undefined>, v.LiteralSchema<"miner", undefined>], undefined>; readonly description: v.StringSchema; }, undefined>, undefined>, readonly []>, undefined>; readonly require: v.OptionalSchema, undefined>, readonly []>, undefined>; readonly resource: v.OptionalSchema; readonly url: v.StringSchema; }, undefined>, undefined>, readonly []>, undefined>; readonly match: v.OptionalSchema, undefined>, readonly []>, undefined>; readonly excludeMatch: v.OptionalSchema, undefined>, readonly []>, undefined>; readonly include: v.OptionalSchema, undefined>, readonly []>, undefined>; readonly exclude: v.OptionalSchema, undefined>, readonly []>, undefined>; readonly runAt: v.OptionalSchema, v.LiteralSchema<"document-start", undefined>, v.LiteralSchema<"document-body", undefined>, v.LiteralSchema<"document-idle", undefined>, v.LiteralSchema<"context-menu", undefined>], undefined>, undefined>, undefined>; readonly runIn: v.OptionalSchema, undefined>, readonly []>, undefined>; readonly sandbox: v.OptionalSchema, v.LiteralSchema<"JavaScript", undefined>, v.LiteralSchema<"DOM", undefined>], undefined>, undefined>, undefined>; readonly injectInto: v.OptionalSchema, v.LiteralSchema<"content", undefined>, v.LiteralSchema<"auto", undefined>], undefined>, undefined>, undefined>; readonly tag: v.OptionalSchema, undefined>, readonly []>, undefined>; readonly connect: v.OptionalSchema, undefined>, readonly []>, undefined>; readonly noframes: v.OptionalSchema, false>, undefined>; readonly supportURL: v.OptionalSchema, undefined>, undefined>; readonly unwrap: v.OptionalSchema, false>, undefined>; readonly topLevelAwait: v.OptionalSchema, false>, undefined>; }; readonly "~standard": v.StandardProps<{ updateURL?: ((...args: unknown[]) => unknown) | undefined; downloadURL?: ((...args: unknown[]) => unknown) | undefined; name?: string | undefined; namespace?: string | undefined; copyright?: string | undefined; version?: string | undefined; description?: string | undefined; icon?: string | undefined; grant?: ("GM.addElement" | "GM.addStyle" | "GM.addValueChangeListener" | "GM.deleteValue" | "GM.deleteValues" | "GM.download" | "GM.getResourceText" | "GM.getResourceUrl" | "GM.getTab" | "GM.getTabs" | "GM.getValue" | "GM.getValues" | "GM.info" | "GM.listValues" | "GM.log" | "GM.notification" | "GM.openInTab" | "GM.registerMenuCommand" | "GM.removeValueChangeListener" | "GM.saveTab" | "GM.setClipboard" | "GM.setValue" | "GM.setValues" | "GM.unregisterMenuCommand" | "GM.xmlHttpRequest" | "GM_addElement" | "GM_addStyle" | "GM_addValueChangeListener" | "GM_cookie" | "GM_deleteValue" | "GM_deleteValues" | "GM_download" | "GM_getResourceText" | "GM_getResourceURL" | "GM_getTab" | "GM_getTabs" | "GM_getValue" | "GM_getValues" | "GM_info" | "GM_listValues" | "GM_log" | "GM_notification" | "GM_openInTab" | "GM_registerMenuCommand" | "GM_removeValueChangeListener" | "GM_saveTab" | "GM_setClipboard" | "GM_setValue" | "GM_setValues" | "GM_unregisterMenuCommand" | "GM_webRequest" | "GM_xmlhttpRequest" | "unsafeWindow" | "window.close" | "window.focus" | "window.onurlchange")[] | "none" | undefined; author?: string | undefined; homepage?: string | undefined; antiFeature?: { type: "ads" | "tracking" | "miner"; description: string; }[] | undefined; require?: string[] | undefined; resource?: { name: string; url: string; }[] | undefined; match?: string[] | undefined; excludeMatch?: string[] | undefined; include?: string[] | undefined; exclude?: string[] | undefined; runAt?: "document-end" | "document-start" | "document-body" | "document-idle" | "context-menu" | undefined; runIn?: string[] | undefined; sandbox?: "raw" | "JavaScript" | "DOM" | undefined; injectInto?: "page" | "content" | "auto" | undefined; tag?: string[] | undefined; connect?: string[] | undefined; noframes?: boolean | undefined; supportURL?: string | undefined; unwrap?: boolean | undefined; topLevelAwait?: boolean | undefined; }, { updateURL?: ((...args: unknown[]) => unknown) | undefined; downloadURL?: ((...args: unknown[]) => unknown) | undefined; name?: string | undefined; namespace?: string | undefined; copyright?: string | undefined; version?: string | undefined; description?: string | undefined; icon?: string | undefined; grant?: ("GM.addElement" | "GM.addStyle" | "GM.addValueChangeListener" | "GM.deleteValue" | "GM.deleteValues" | "GM.download" | "GM.getResourceText" | "GM.getResourceUrl" | "GM.getTab" | "GM.getTabs" | "GM.getValue" | "GM.getValues" | "GM.info" | "GM.listValues" | "GM.log" | "GM.notification" | "GM.openInTab" | "GM.registerMenuCommand" | "GM.removeValueChangeListener" | "GM.saveTab" | "GM.setClipboard" | "GM.setValue" | "GM.setValues" | "GM.unregisterMenuCommand" | "GM.xmlHttpRequest" | "GM_addElement" | "GM_addStyle" | "GM_addValueChangeListener" | "GM_cookie" | "GM_deleteValue" | "GM_deleteValues" | "GM_download" | "GM_getResourceText" | "GM_getResourceURL" | "GM_getTab" | "GM_getTabs" | "GM_getValue" | "GM_getValues" | "GM_info" | "GM_listValues" | "GM_log" | "GM_notification" | "GM_openInTab" | "GM_registerMenuCommand" | "GM_removeValueChangeListener" | "GM_saveTab" | "GM_setClipboard" | "GM_setValue" | "GM_setValues" | "GM_unregisterMenuCommand" | "GM_webRequest" | "GM_xmlhttpRequest" | "unsafeWindow" | "window.close" | "window.focus" | "window.onurlchange")[] | "none" | undefined; author?: string | undefined; homepage?: string | undefined; antiFeature?: { type: "ads" | "tracking" | "miner"; description: string; }[] | undefined; require?: string[] | undefined; resource?: { name: string; url: string; }[] | undefined; match?: string[] | undefined; excludeMatch?: string[] | undefined; include?: string[] | undefined; exclude?: string[] | undefined; runAt?: "document-end" | "document-start" | "document-body" | "document-idle" | "context-menu" | undefined; runIn?: string[] | undefined; sandbox?: "raw" | "JavaScript" | "DOM" | undefined; injectInto?: "page" | "content" | "auto" | undefined; tag?: string[] | undefined; connect?: string[] | undefined; noframes?: boolean | undefined; supportURL?: string | undefined; unwrap?: boolean | undefined; topLevelAwait?: boolean | undefined; }>; readonly "~run": (dataset: v.UnknownDataset, config: v.Config>) => v.OutputDataset<{ updateURL?: ((...args: unknown[]) => unknown) | undefined; downloadURL?: ((...args: unknown[]) => unknown) | undefined; name?: string | undefined; namespace?: string | undefined; copyright?: string | undefined; version?: string | undefined; description?: string | undefined; icon?: string | undefined; grant?: ("GM.addElement" | "GM.addStyle" | "GM.addValueChangeListener" | "GM.deleteValue" | "GM.deleteValues" | "GM.download" | "GM.getResourceText" | "GM.getResourceUrl" | "GM.getTab" | "GM.getTabs" | "GM.getValue" | "GM.getValues" | "GM.info" | "GM.listValues" | "GM.log" | "GM.notification" | "GM.openInTab" | "GM.registerMenuCommand" | "GM.removeValueChangeListener" | "GM.saveTab" | "GM.setClipboard" | "GM.setValue" | "GM.setValues" | "GM.unregisterMenuCommand" | "GM.xmlHttpRequest" | "GM_addElement" | "GM_addStyle" | "GM_addValueChangeListener" | "GM_cookie" | "GM_deleteValue" | "GM_deleteValues" | "GM_download" | "GM_getResourceText" | "GM_getResourceURL" | "GM_getTab" | "GM_getTabs" | "GM_getValue" | "GM_getValues" | "GM_info" | "GM_listValues" | "GM_log" | "GM_notification" | "GM_openInTab" | "GM_registerMenuCommand" | "GM_removeValueChangeListener" | "GM_saveTab" | "GM_setClipboard" | "GM_setValue" | "GM_setValues" | "GM_unregisterMenuCommand" | "GM_webRequest" | "GM_xmlhttpRequest" | "unsafeWindow" | "window.close" | "window.focus" | "window.onurlchange")[] | "none" | undefined; author?: string | undefined; homepage?: string | undefined; antiFeature?: { type: "ads" | "tracking" | "miner"; description: string; }[] | undefined; require?: string[] | undefined; resource?: { name: string; url: string; }[] | undefined; match?: string[] | undefined; excludeMatch?: string[] | undefined; include?: string[] | undefined; exclude?: string[] | undefined; runAt?: "document-end" | "document-start" | "document-body" | "document-idle" | "context-menu" | undefined; runIn?: string[] | undefined; sandbox?: "raw" | "JavaScript" | "DOM" | undefined; injectInto?: "page" | "content" | "auto" | undefined; tag?: string[] | undefined; connect?: string[] | undefined; noframes?: boolean | undefined; supportURL?: string | undefined; unwrap?: boolean | undefined; topLevelAwait?: boolean | undefined; }, v.StringIssue | v.ArrayIssue | v.LiteralIssue | v.UnionIssue | v.UnionIssue> | v.ObjectIssue | v.BooleanIssue | v.FunctionIssue>; readonly "~types"?: { readonly input: { updateURL?: ((...args: unknown[]) => unknown) | undefined; downloadURL?: ((...args: unknown[]) => unknown) | undefined; name?: string | undefined; namespace?: string | undefined; copyright?: string | undefined; version?: string | undefined; description?: string | undefined; icon?: string | undefined; grant?: ("GM.addElement" | "GM.addStyle" | "GM.addValueChangeListener" | "GM.deleteValue" | "GM.deleteValues" | "GM.download" | "GM.getResourceText" | "GM.getResourceUrl" | "GM.getTab" | "GM.getTabs" | "GM.getValue" | "GM.getValues" | "GM.info" | "GM.listValues" | "GM.log" | "GM.notification" | "GM.openInTab" | "GM.registerMenuCommand" | "GM.removeValueChangeListener" | "GM.saveTab" | "GM.setClipboard" | "GM.setValue" | "GM.setValues" | "GM.unregisterMenuCommand" | "GM.xmlHttpRequest" | "GM_addElement" | "GM_addStyle" | "GM_addValueChangeListener" | "GM_cookie" | "GM_deleteValue" | "GM_deleteValues" | "GM_download" | "GM_getResourceText" | "GM_getResourceURL" | "GM_getTab" | "GM_getTabs" | "GM_getValue" | "GM_getValues" | "GM_info" | "GM_listValues" | "GM_log" | "GM_notification" | "GM_openInTab" | "GM_registerMenuCommand" | "GM_removeValueChangeListener" | "GM_saveTab" | "GM_setClipboard" | "GM_setValue" | "GM_setValues" | "GM_unregisterMenuCommand" | "GM_webRequest" | "GM_xmlhttpRequest" | "unsafeWindow" | "window.close" | "window.focus" | "window.onurlchange")[] | "none" | undefined; author?: string | undefined; homepage?: string | undefined; antiFeature?: { type: "ads" | "tracking" | "miner"; description: string; }[] | undefined; require?: string[] | undefined; resource?: { name: string; url: string; }[] | undefined; match?: string[] | undefined; excludeMatch?: string[] | undefined; include?: string[] | undefined; exclude?: string[] | undefined; runAt?: "document-end" | "document-start" | "document-body" | "document-idle" | "context-menu" | undefined; runIn?: string[] | undefined; sandbox?: "raw" | "JavaScript" | "DOM" | undefined; injectInto?: "page" | "content" | "auto" | undefined; tag?: string[] | undefined; connect?: string[] | undefined; noframes?: boolean | undefined; supportURL?: string | undefined; unwrap?: boolean | undefined; topLevelAwait?: boolean | undefined; }; readonly output: { updateURL?: ((...args: unknown[]) => unknown) | undefined; downloadURL?: ((...args: unknown[]) => unknown) | undefined; name?: string | undefined; namespace?: string | undefined; copyright?: string | undefined; version?: string | undefined; description?: string | undefined; icon?: string | undefined; grant?: ("GM.addElement" | "GM.addStyle" | "GM.addValueChangeListener" | "GM.deleteValue" | "GM.deleteValues" | "GM.download" | "GM.getResourceText" | "GM.getResourceUrl" | "GM.getTab" | "GM.getTabs" | "GM.getValue" | "GM.getValues" | "GM.info" | "GM.listValues" | "GM.log" | "GM.notification" | "GM.openInTab" | "GM.registerMenuCommand" | "GM.removeValueChangeListener" | "GM.saveTab" | "GM.setClipboard" | "GM.setValue" | "GM.setValues" | "GM.unregisterMenuCommand" | "GM.xmlHttpRequest" | "GM_addElement" | "GM_addStyle" | "GM_addValueChangeListener" | "GM_cookie" | "GM_deleteValue" | "GM_deleteValues" | "GM_download" | "GM_getResourceText" | "GM_getResourceURL" | "GM_getTab" | "GM_getTabs" | "GM_getValue" | "GM_getValues" | "GM_info" | "GM_listValues" | "GM_log" | "GM_notification" | "GM_openInTab" | "GM_registerMenuCommand" | "GM_removeValueChangeListener" | "GM_saveTab" | "GM_setClipboard" | "GM_setValue" | "GM_setValues" | "GM_unregisterMenuCommand" | "GM_webRequest" | "GM_xmlhttpRequest" | "unsafeWindow" | "window.close" | "window.focus" | "window.onurlchange")[] | "none" | undefined; author?: string | undefined; homepage?: string | undefined; antiFeature?: { type: "ads" | "tracking" | "miner"; description: string; }[] | undefined; require?: string[] | undefined; resource?: { name: string; url: string; }[] | undefined; match?: string[] | undefined; excludeMatch?: string[] | undefined; include?: string[] | undefined; exclude?: string[] | undefined; runAt?: "document-end" | "document-start" | "document-body" | "document-idle" | "context-menu" | undefined; runIn?: string[] | undefined; sandbox?: "raw" | "JavaScript" | "DOM" | undefined; injectInto?: "page" | "content" | "auto" | undefined; tag?: string[] | undefined; connect?: string[] | undefined; noframes?: boolean | undefined; supportURL?: string | undefined; unwrap?: boolean | undefined; topLevelAwait?: boolean | undefined; }; readonly issue: v.StringIssue | v.ArrayIssue | v.LiteralIssue | v.UnionIssue | v.UnionIssue> | v.ObjectIssue | v.BooleanIssue | v.FunctionIssue; } | undefined; }, {}>; }, undefined>; type Config = OverrideProperties, { defaultMeta?: DefaultMeta; }>; declare const build: ({ config, }: { config?: Config; }) => Promise>; declare const watch: ({ remote, config, }: { remote: boolean; config?: Config; }) => Promise; declare const defineUserScript: (args: Meta & { main: (config: C) => unknown; config?: C; }) => { name?: string | undefined; namespace?: string | undefined; copyright?: string | undefined; version?: string | undefined; description?: string | undefined; icon?: string | undefined; grant?: ("GM.addElement" | "GM.addStyle" | "GM.addValueChangeListener" | "GM.deleteValue" | "GM.deleteValues" | "GM.download" | "GM.getResourceText" | "GM.getResourceUrl" | "GM.getTab" | "GM.getTabs" | "GM.getValue" | "GM.getValues" | "GM.info" | "GM.listValues" | "GM.log" | "GM.notification" | "GM.openInTab" | "GM.registerMenuCommand" | "GM.removeValueChangeListener" | "GM.saveTab" | "GM.setClipboard" | "GM.setValue" | "GM.setValues" | "GM.unregisterMenuCommand" | "GM.xmlHttpRequest" | "GM_addElement" | "GM_addStyle" | "GM_addValueChangeListener" | "GM_cookie" | "GM_deleteValue" | "GM_deleteValues" | "GM_download" | "GM_getResourceText" | "GM_getResourceURL" | "GM_getTab" | "GM_getTabs" | "GM_getValue" | "GM_getValues" | "GM_info" | "GM_listValues" | "GM_log" | "GM_notification" | "GM_openInTab" | "GM_registerMenuCommand" | "GM_removeValueChangeListener" | "GM_saveTab" | "GM_setClipboard" | "GM_setValue" | "GM_setValues" | "GM_unregisterMenuCommand" | "GM_webRequest" | "GM_xmlhttpRequest" | "unsafeWindow" | "window.close" | "window.focus" | "window.onurlchange")[] | "none" | undefined; author?: string | undefined; homepage?: string | undefined; antiFeature?: { type: "ads" | "tracking" | "miner"; description: string; }[] | undefined; require?: string[] | undefined; resource?: { name: string; url: string; }[] | undefined; match?: string[] | undefined; excludeMatch?: string[] | undefined; include?: string[] | undefined; exclude?: string[] | undefined; runAt?: "document-end" | "document-start" | "document-body" | "document-idle" | "context-menu" | undefined; runIn?: string[] | undefined; sandbox?: "raw" | "JavaScript" | "DOM" | undefined; injectInto?: "page" | "content" | "auto" | undefined; tag?: string[] | undefined; connect?: string[] | undefined; noframes?: boolean | undefined; updateURL?: string | undefined; downloadURL?: string | undefined; supportURL?: string | undefined; unwrap?: boolean | undefined; topLevelAwait?: boolean | undefined; } & { main: (config: C) => unknown; config?: C; }; export { type Config, build, defineUserScript, watch };