import { APIResource } from "../../../../../core/resource.js"; import * as WorkersAPI from "../../../../workers/workers.js"; import * as ScriptsAPI from "../../../../workers/scripts/scripts.js"; import * as TailAPI from "../../../../workers/scripts/tail.js"; import * as AssetUploadAPI from "./asset-upload.js"; import { AssetUpload, AssetUploadCreateParams, AssetUploadCreateResponse, BaseAssetUpload } from "./asset-upload.js"; import * as BindingsAPI from "./bindings.js"; import { BaseBindings, BindingGetParams, BindingGetResponse, BindingGetResponsesSinglePage, Bindings } from "./bindings.js"; import * as ContentAPI from "./content.js"; import { BaseContent, Content, ContentGetParams, ContentUpdateParams } from "./content.js"; import * as SecretsAPI from "./secrets.js"; import { BaseSecrets, SecretBulkUpdateParams, SecretBulkUpdateResponse, SecretDeleteParams, SecretDeleteResponse, SecretGetParams, SecretGetResponse, SecretListParams, SecretListResponse, SecretListResponsesSinglePage, SecretUpdateParams, SecretUpdateResponse, Secrets } from "./secrets.js"; import * as SettingsAPI from "./settings.js"; import { BaseSettings, SettingEditParams, SettingEditResponse, SettingGetParams, SettingGetResponse, Settings } from "./settings.js"; import * as TagsAPI from "./tags.js"; import { BaseTags, TagDeleteParams, TagDeleteResponse, TagListParams, TagListResponse, TagListResponsesSinglePage, TagUpdateParams, TagUpdateResponse, TagUpdateResponsesSinglePage, Tags } from "./tags.js"; import { APIPromise } from "../../../../../core/api-promise.js"; import { type Uploadable } from "../../../../../core/uploads.js"; import { RequestOptions } from "../../../../../internal/request-options.js"; export declare class BaseScripts extends APIResource { static readonly _key: readonly ['workersForPlatforms', 'dispatch', 'namespaces', 'scripts']; /** * Upload a worker module to a Workers for Platforms namespace. You can find more * about the multipart metadata on our docs: * https://developers.cloudflare.com/workers/configuration/multipart-upload-metadata/. * * @example * ```ts * const script = * await client.workersForPlatforms.dispatch.namespaces.scripts.update( * 'this-is_my_script-01', * { * account_id: '023e105f4ecef8ad9ca31a8372d0c353', * dispatch_namespace: 'my-dispatch-namespace', * metadata: {}, * }, * ); * ``` */ update(scriptName: string, params: ScriptUpdateParams, options?: RequestOptions): APIPromise; /** * Delete a worker from a Workers for Platforms namespace. This call has no * response body on a successful delete. * * @example * ```ts * const script = * await client.workersForPlatforms.dispatch.namespaces.scripts.delete( * 'this-is_my_script-01', * { * account_id: '023e105f4ecef8ad9ca31a8372d0c353', * dispatch_namespace: 'my-dispatch-namespace', * }, * ); * ``` */ delete(scriptName: string, params: ScriptDeleteParams, options?: RequestOptions): APIPromise; /** * Fetch information about a script uploaded to a Workers for Platforms namespace. * * @example * ```ts * const script = * await client.workersForPlatforms.dispatch.namespaces.scripts.get( * 'this-is_my_script-01', * { * account_id: '023e105f4ecef8ad9ca31a8372d0c353', * dispatch_namespace: 'my-dispatch-namespace', * }, * ); * ``` */ get(scriptName: string, params: ScriptGetParams, options?: RequestOptions): APIPromise