import { APIResource } from "../../../../../resource.js"; import * as Core from "../../../../../core.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 } from "./asset-upload.js"; import * as BindingsAPI from "./bindings.js"; import { BindingGetParams, BindingGetResponse, BindingGetResponsesSinglePage, Bindings } from "./bindings.js"; import * as ContentAPI from "./content.js"; import { Content, ContentGetParams, ContentUpdateParams } from "./content.js"; import * as SecretsAPI from "./secrets.js"; import { SecretDeleteParams, SecretDeleteResponse, SecretGetParams, SecretGetResponse, SecretListParams, SecretListResponse, SecretListResponsesSinglePage, SecretUpdateParams, SecretUpdateResponse, Secrets } from "./secrets.js"; import * as SettingsAPI from "./settings.js"; import { SettingEditParams, SettingEditResponse, SettingGetParams, SettingGetResponse, Settings } from "./settings.js"; import * as TagsAPI from "./tags.js"; import { TagDeleteParams, TagDeleteResponse, TagListParams, TagListResponse, TagListResponsesSinglePage, TagUpdateParams, TagUpdateResponse, TagUpdateResponsesSinglePage, Tags } from "./tags.js"; export declare class Scripts extends APIResource { assetUpload: AssetUploadAPI.AssetUpload; content: ContentAPI.Content; settings: SettingsAPI.Settings; bindings: BindingsAPI.Bindings; secrets: SecretsAPI.Secrets; tags: TagsAPI.Tags; /** * 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( * 'my-dispatch-namespace', * 'this-is_my_script-01', * { * account_id: '023e105f4ecef8ad9ca31a8372d0c353', * metadata: {}, * }, * ); * ``` */ update(dispatchNamespace: string, scriptName: string, params: ScriptUpdateParams, options?: Core.RequestOptions): Core.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( * 'my-dispatch-namespace', * 'this-is_my_script-01', * { account_id: '023e105f4ecef8ad9ca31a8372d0c353' }, * ); * ``` */ delete(dispatchNamespace: string, scriptName: string, params: ScriptDeleteParams, options?: Core.RequestOptions): Core.APIPromise; /** * Fetch information about a script uploaded to a Workers for Platforms namespace. * * @example * ```ts * const script = * await client.workersForPlatforms.dispatch.namespaces.scripts.get( * 'my-dispatch-namespace', * 'this-is_my_script-01', * { account_id: '023e105f4ecef8ad9ca31a8372d0c353' }, * ); * ``` */ get(dispatchNamespace: string, scriptName: string, params: ScriptGetParams, options?: Core.RequestOptions): Core.APIPromise