import { Schema } from 'effect';
import type { Environment } from '../../../../../vendor/cel-js/lib/index.js';
export declare const type: "com.shwfed.actions.button.http.download";
export declare const compatibilityDate: "2026-05-21";
export declare const metadata: {
    readonly name: "下载文件";
    readonly icon: "fluent:arrow-download-20-regular";
};
export declare const JSON_VAR: {
    readonly type: "dyn";
    readonly label: "HTTP 响应体";
    readonly description: "第一步 `请求` 的响应体（已解析 JSON）；用于构造第二步下载请求";
};
export declare function schema(configure: (env: Environment) => void): Schema.Struct<{
    type: Schema.Literal<["com.shwfed.actions.button.http.download"]>;
    compatibilityDate: Schema.Literal<["2026-05-21"]>;
    template: Schema.Struct<{
        request: Schema.Schema<string, string, never>;
        download: Schema.optional<Schema.Schema<string, string, never>>;
    }>;
    messageExpression: Schema.optional<Schema.Schema<string, string, never>>;
    resultExpression: Schema.optional<Schema.Schema<string, string, never>>;
    onSuccess: Schema.optional<Schema.Array$<Schema.Struct<{
        id: Schema.optional<Schema.refine<string, typeof Schema.String>>;
        target: Schema.refine<string, typeof Schema.String>;
        operation: Schema.SchemaClass<string, string, never>;
        compatibilityDate: Schema.optional<Schema.SchemaClass<string, string, never>>;
        params: Schema.optional<Schema.SchemaClass<unknown, unknown, never>>;
    }>>>;
    onWarning: Schema.optional<Schema.Array$<Schema.Struct<{
        id: Schema.optional<Schema.refine<string, typeof Schema.String>>;
        target: Schema.refine<string, typeof Schema.String>;
        operation: Schema.SchemaClass<string, string, never>;
        compatibilityDate: Schema.optional<Schema.SchemaClass<string, string, never>>;
        params: Schema.optional<Schema.SchemaClass<unknown, unknown, never>>;
    }>>>;
    onError: Schema.optional<Schema.Array$<Schema.Struct<{
        id: Schema.optional<Schema.refine<string, typeof Schema.String>>;
        target: Schema.refine<string, typeof Schema.String>;
        operation: Schema.SchemaClass<string, string, never>;
        compatibilityDate: Schema.optional<Schema.SchemaClass<string, string, never>>;
        params: Schema.optional<Schema.SchemaClass<unknown, unknown, never>>;
    }>>>;
    onInfo: Schema.optional<Schema.Array$<Schema.Struct<{
        id: Schema.optional<Schema.refine<string, typeof Schema.String>>;
        target: Schema.refine<string, typeof Schema.String>;
        operation: Schema.SchemaClass<string, string, never>;
        compatibilityDate: Schema.optional<Schema.SchemaClass<string, string, never>>;
        params: Schema.optional<Schema.SchemaClass<unknown, unknown, never>>;
    }>>>;
}>;
export type Value = Schema.Schema.Type<ReturnType<typeof schema>>;
