import { Plugin } from '@servicenow/sdk-build-core'; /** * Creates a Client Script (`sys_script_client`). * * @see https://docs.servicenow.com/csh?topicname=client-script-api-now-ts.html&version=latest * * @param config - an object containing the following properties: * * **$id** - unique id for the record, typically using `Now.ID["value"]` * * **name** - name of the client script * * **table** - name of the table on which the client script runs * * **type** - type of client script, which defines when it runs * * **uiType** - user interface to which the client script applies * * **active**? - whether the record is enabled * * **appliesExtended**? - indicates whether the client script applies to tables extended from the specified table * * **description**? - description of the functionality and purpose of the client script * * **field**? - field on the table that the client script applies to. * Takes effect only when the type property is set to `onChange` or `onCellEdit`; a warning is emitted at build time if set with other event types. * * **global**? - indicates which views of the table the client script runs. * `true`: the script runs on all views * `false`: the script runs only on specified views * * **isolateScript**? - indicates whether scripts run in strict mode, with * access to direct DOM, `jQuery`, `prototype`, and the `window` object turned off * * **messages**? - strings that are available to the client script as localized messages using `getmessage('[message]')`. * For more information, see [Translate a client script message](https://docs.servicenow.com/csh?topicname=t_TranslateAClientScriptMessage.html&version=latest) * * **order**? - the execution order of the client script (lower numbers execute first) * * **script**? - inline script preceded by a `script` tagged template literal. * * **view**? - views of the table on which the client script runs. This * property applies only when the `global` property is set to `false` */ export declare const ClientScriptPlugin: Plugin;