import * as pulumi from "@pulumi/pulumi";
import * as inputs from "./types/input";
import * as outputs from "./types/output";
/**
 * ## Example Usage
 *
 * ## Import
 *
 * ```sh
 * $ pulumi import cloudflare:index/workersScript:WorkersScript example '<account_id>/<script_name>'
 * ```
 */
export declare class WorkersScript extends pulumi.CustomResource {
    /**
     * Get an existing WorkersScript resource's state with the given name, ID, and optional extra
     * properties used to qualify the lookup.
     *
     * @param name The _unique_ name of the resulting resource.
     * @param id The _unique_ provider ID of the resource to lookup.
     * @param state Any extra arguments used during the lookup.
     * @param opts Optional settings to control the behavior of the CustomResource.
     */
    static get(name: string, id: pulumi.Input<pulumi.ID>, state?: WorkersScriptState, opts?: pulumi.CustomResourceOptions): WorkersScript;
    /**
     * Returns true if the given object is an instance of WorkersScript.  This is designed to work even
     * when multiple copies of the Pulumi SDK have been loaded into the same process.
     */
    static isInstance(obj: any): obj is WorkersScript;
    /**
     * Identifier.
     */
    readonly accountId: pulumi.Output<string>;
    /**
     * Configuration for assets within a Worker
     */
    readonly assets: pulumi.Output<outputs.WorkersScriptAssets | undefined>;
    /**
     * List of bindings attached to a Worker. You can find more about bindings on our docs: https://developers.cloudflare.com/workers/configuration/multipart-upload-metadata/#bindings.
     */
    readonly bindings: pulumi.Output<outputs.WorkersScriptBinding[]>;
    /**
     * Name of the part in the multipart request that contains the script (e.g. the file adding a listener to the `fetch` event). Indicates a `service worker syntax` Worker.
     */
    readonly bodyPart: pulumi.Output<string | undefined>;
    /**
     * Date indicating targeted support in the Workers runtime. Backwards incompatible fixes to the runtime following this date will not affect this Worker.
     */
    readonly compatibilityDate: pulumi.Output<string | undefined>;
    /**
     * Flags that enable or disable certain features in the Workers runtime. Used to enable upcoming features or opt in or out of specific changes not included in a `compatibilityDate`.
     */
    readonly compatibilityFlags: pulumi.Output<string[] | undefined>;
    /**
     * Module or Service Worker contents of the Worker.
     */
    readonly content: pulumi.Output<string>;
    /**
     * When the script was created.
     */
    readonly createdOn: pulumi.Output<string>;
    /**
     * Hashed script content, can be used in a If-None-Match header when updating.
     */
    readonly etag: pulumi.Output<string>;
    /**
     * Whether a Worker contains assets.
     */
    readonly hasAssets: pulumi.Output<boolean>;
    /**
     * Whether a Worker contains modules.
     */
    readonly hasModules: pulumi.Output<boolean>;
    /**
     * Retain assets which exist for a previously uploaded Worker version; used in lieu of providing a completion token.
     */
    readonly keepAssets: pulumi.Output<boolean | undefined>;
    /**
     * List of binding types to keep from previous_upload.
     */
    readonly keepBindings: pulumi.Output<string[] | undefined>;
    /**
     * Whether Logpush is turned on for the Worker.
     */
    readonly logpush: pulumi.Output<boolean>;
    /**
     * Name of the part in the multipart request that contains the main module (e.g. the file exporting a `fetch` handler). Indicates a `module syntax` Worker.
     */
    readonly mainModule: pulumi.Output<string | undefined>;
    /**
     * Migrations to apply for Durable Objects associated with this Worker.
     */
    readonly migrations: pulumi.Output<outputs.WorkersScriptMigrations>;
    /**
     * When the script was last modified.
     */
    readonly modifiedOn: pulumi.Output<string>;
    /**
     * Observability settings for the Worker.
     */
    readonly observability: pulumi.Output<outputs.WorkersScriptObservability>;
    /**
     * Configuration for [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).
     */
    readonly placement: pulumi.Output<outputs.WorkersScriptPlacement>;
    /**
     * Name of the script, used in URLs and route configuration.
     */
    readonly scriptName: pulumi.Output<string>;
    readonly startupTimeMs: pulumi.Output<number>;
    /**
     * List of Workers that will consume logs from the attached Worker.
     */
    readonly tailConsumers: pulumi.Output<outputs.WorkersScriptTailConsumer[]>;
    /**
     * Usage model for the Worker invocations.
     * Available values: "standard".
     */
    readonly usageModel: pulumi.Output<string>;
    /**
     * Create a WorkersScript resource with the given unique name, arguments, and options.
     *
     * @param name The _unique_ name of the resource.
     * @param args The arguments to use to populate this resource's properties.
     * @param opts A bag of options that control this resource's behavior.
     */
    constructor(name: string, args: WorkersScriptArgs, opts?: pulumi.CustomResourceOptions);
}
/**
 * Input properties used for looking up and filtering WorkersScript resources.
 */
export interface WorkersScriptState {
    /**
     * Identifier.
     */
    accountId?: pulumi.Input<string>;
    /**
     * Configuration for assets within a Worker
     */
    assets?: pulumi.Input<inputs.WorkersScriptAssets>;
    /**
     * List of bindings attached to a Worker. You can find more about bindings on our docs: https://developers.cloudflare.com/workers/configuration/multipart-upload-metadata/#bindings.
     */
    bindings?: pulumi.Input<pulumi.Input<inputs.WorkersScriptBinding>[]>;
    /**
     * Name of the part in the multipart request that contains the script (e.g. the file adding a listener to the `fetch` event). Indicates a `service worker syntax` Worker.
     */
    bodyPart?: pulumi.Input<string>;
    /**
     * Date indicating targeted support in the Workers runtime. Backwards incompatible fixes to the runtime following this date will not affect this Worker.
     */
    compatibilityDate?: pulumi.Input<string>;
    /**
     * Flags that enable or disable certain features in the Workers runtime. Used to enable upcoming features or opt in or out of specific changes not included in a `compatibilityDate`.
     */
    compatibilityFlags?: pulumi.Input<pulumi.Input<string>[]>;
    /**
     * Module or Service Worker contents of the Worker.
     */
    content?: pulumi.Input<string>;
    /**
     * When the script was created.
     */
    createdOn?: pulumi.Input<string>;
    /**
     * Hashed script content, can be used in a If-None-Match header when updating.
     */
    etag?: pulumi.Input<string>;
    /**
     * Whether a Worker contains assets.
     */
    hasAssets?: pulumi.Input<boolean>;
    /**
     * Whether a Worker contains modules.
     */
    hasModules?: pulumi.Input<boolean>;
    /**
     * Retain assets which exist for a previously uploaded Worker version; used in lieu of providing a completion token.
     */
    keepAssets?: pulumi.Input<boolean>;
    /**
     * List of binding types to keep from previous_upload.
     */
    keepBindings?: pulumi.Input<pulumi.Input<string>[]>;
    /**
     * Whether Logpush is turned on for the Worker.
     */
    logpush?: pulumi.Input<boolean>;
    /**
     * Name of the part in the multipart request that contains the main module (e.g. the file exporting a `fetch` handler). Indicates a `module syntax` Worker.
     */
    mainModule?: pulumi.Input<string>;
    /**
     * Migrations to apply for Durable Objects associated with this Worker.
     */
    migrations?: pulumi.Input<inputs.WorkersScriptMigrations>;
    /**
     * When the script was last modified.
     */
    modifiedOn?: pulumi.Input<string>;
    /**
     * Observability settings for the Worker.
     */
    observability?: pulumi.Input<inputs.WorkersScriptObservability>;
    /**
     * Configuration for [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).
     */
    placement?: pulumi.Input<inputs.WorkersScriptPlacement>;
    /**
     * Name of the script, used in URLs and route configuration.
     */
    scriptName?: pulumi.Input<string>;
    startupTimeMs?: pulumi.Input<number>;
    /**
     * List of Workers that will consume logs from the attached Worker.
     */
    tailConsumers?: pulumi.Input<pulumi.Input<inputs.WorkersScriptTailConsumer>[]>;
    /**
     * Usage model for the Worker invocations.
     * Available values: "standard".
     */
    usageModel?: pulumi.Input<string>;
}
/**
 * The set of arguments for constructing a WorkersScript resource.
 */
export interface WorkersScriptArgs {
    /**
     * Identifier.
     */
    accountId: pulumi.Input<string>;
    /**
     * Configuration for assets within a Worker
     */
    assets?: pulumi.Input<inputs.WorkersScriptAssets>;
    /**
     * List of bindings attached to a Worker. You can find more about bindings on our docs: https://developers.cloudflare.com/workers/configuration/multipart-upload-metadata/#bindings.
     */
    bindings?: pulumi.Input<pulumi.Input<inputs.WorkersScriptBinding>[]>;
    /**
     * Name of the part in the multipart request that contains the script (e.g. the file adding a listener to the `fetch` event). Indicates a `service worker syntax` Worker.
     */
    bodyPart?: pulumi.Input<string>;
    /**
     * Date indicating targeted support in the Workers runtime. Backwards incompatible fixes to the runtime following this date will not affect this Worker.
     */
    compatibilityDate?: pulumi.Input<string>;
    /**
     * Flags that enable or disable certain features in the Workers runtime. Used to enable upcoming features or opt in or out of specific changes not included in a `compatibilityDate`.
     */
    compatibilityFlags?: pulumi.Input<pulumi.Input<string>[]>;
    /**
     * Module or Service Worker contents of the Worker.
     */
    content: pulumi.Input<string>;
    /**
     * Retain assets which exist for a previously uploaded Worker version; used in lieu of providing a completion token.
     */
    keepAssets?: pulumi.Input<boolean>;
    /**
     * List of binding types to keep from previous_upload.
     */
    keepBindings?: pulumi.Input<pulumi.Input<string>[]>;
    /**
     * Whether Logpush is turned on for the Worker.
     */
    logpush?: pulumi.Input<boolean>;
    /**
     * Name of the part in the multipart request that contains the main module (e.g. the file exporting a `fetch` handler). Indicates a `module syntax` Worker.
     */
    mainModule?: pulumi.Input<string>;
    /**
     * Migrations to apply for Durable Objects associated with this Worker.
     */
    migrations?: pulumi.Input<inputs.WorkersScriptMigrations>;
    /**
     * Observability settings for the Worker.
     */
    observability?: pulumi.Input<inputs.WorkersScriptObservability>;
    /**
     * Configuration for [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement).
     */
    placement?: pulumi.Input<inputs.WorkersScriptPlacement>;
    /**
     * Name of the script, used in URLs and route configuration.
     */
    scriptName: pulumi.Input<string>;
    /**
     * List of Workers that will consume logs from the attached Worker.
     */
    tailConsumers?: pulumi.Input<pulumi.Input<inputs.WorkersScriptTailConsumer>[]>;
    /**
     * Usage model for the Worker invocations.
     * Available values: "standard".
     */
    usageModel?: pulumi.Input<string>;
}