import type { components } from '../generated/api.js';
import type { ActionId } from '../core/branded-types.js';
import { WorkspaceScopedResource } from './base.js';
import type { ListParams } from '../core/utils.js';
export interface ListActionsParams extends ListParams {
    search?: string;
    enabled?: boolean;
    execution_tier?: string;
}
/**
 * Manage actions — reusable AI capabilities that agents can call.
 * Actions define a structured input/output schema and an execution tier.
 *
 * Note: The underlying API paths use `/skills/` for backward compatibility.
 */
export declare class ActionsResource extends WorkspaceScopedResource {
    /** Create a new action */
    create(body: components['schemas']['CreateSkillRequest']): Promise<{
        approval_required: boolean;
        browser_allowed_domains: string[];
        browser_auth_integration: string | null;
        browser_start_url: string | null;
        checkpoint_enabled: boolean;
        created_at: string;
        delivery: "interrupt" | "queue";
        description: string;
        enable_caching: boolean;
        enable_citations: boolean;
        enabled: boolean;
        execution_tier: "direct" | "orchestrated" | "autonomous" | "browser" | "computer_use";
        id: string;
        input_schema: {
            [x: string]: unknown;
        };
        integration_tools: {
            endpoint: string;
            integration: string;
        }[];
        max_agent_turns: number;
        max_input_tokens: number | null;
        max_result_chars: number;
        max_tokens: number;
        model: string;
        name: string;
        result_schema: {
            [x: string]: unknown;
        } | null;
        slug: string;
        static_tools: {
            description: string;
            handler: string;
            input_schema: {
                [x: string]: unknown;
            };
            name: string;
        }[];
        system_prompt: string;
        thinking_effort: ("low" | "medium" | "high") | null;
        timeout_s: number;
        updated_at: string;
        urgency_keywords: string[];
        use_structured_output: boolean;
        version: number;
        workspace_id: string;
    } & import("../index.js").ResponseMetadata>;
    /** List actions in the workspace */
    list(params?: ListActionsParams): Promise<{
        continuation_token?: number | null | undefined;
        has_more: boolean;
        items: {
            approval_required: boolean;
            browser_allowed_domains: string[];
            browser_auth_integration: string | null;
            browser_start_url: string | null;
            checkpoint_enabled: boolean;
            created_at: string;
            delivery: "interrupt" | "queue";
            description: string;
            enable_caching: boolean;
            enable_citations: boolean;
            enabled: boolean;
            execution_tier: "direct" | "orchestrated" | "autonomous" | "browser" | "computer_use";
            id: string;
            input_schema: {
                [x: string]: unknown;
            };
            integration_tools: {
                endpoint: string;
                integration: string;
            }[];
            max_agent_turns: number;
            max_input_tokens: number | null;
            max_result_chars: number;
            max_tokens: number;
            model: string;
            name: string;
            result_schema: {
                [x: string]: unknown;
            } | null;
            slug: string;
            static_tools: {
                description: string;
                handler: string;
                input_schema: {
                    [x: string]: unknown;
                };
                name: string;
            }[];
            system_prompt: string;
            thinking_effort: ("low" | "medium" | "high") | null;
            timeout_s: number;
            updated_at: string;
            urgency_keywords: string[];
            use_structured_output: boolean;
            version: number;
            workspace_id: string;
        }[];
        total?: number | null | undefined;
    } & import("../index.js").ResponseMetadata>;
    listAutoPaging(params?: ListActionsParams): AsyncGenerator<{
        approval_required: boolean;
        browser_allowed_domains: string[];
        browser_auth_integration: string | null;
        browser_start_url: string | null;
        checkpoint_enabled: boolean;
        created_at: string;
        delivery: "interrupt" | "queue";
        description: string;
        enable_caching: boolean;
        enable_citations: boolean;
        enabled: boolean;
        execution_tier: "direct" | "orchestrated" | "autonomous" | "browser" | "computer_use";
        id: string;
        input_schema: {
            [x: string]: unknown;
        };
        integration_tools: {
            endpoint: string;
            integration: string;
        }[];
        max_agent_turns: number;
        max_input_tokens: number | null;
        max_result_chars: number;
        max_tokens: number;
        model: string;
        name: string;
        result_schema: {
            [x: string]: unknown;
        } | null;
        slug: string;
        static_tools: {
            description: string;
            handler: string;
            input_schema: {
                [x: string]: unknown;
            };
            name: string;
        }[];
        system_prompt: string;
        thinking_effort: ("low" | "medium" | "high") | null;
        timeout_s: number;
        updated_at: string;
        urgency_keywords: string[];
        use_structured_output: boolean;
        version: number;
        workspace_id: string;
    }, any, any>;
    /** Get a single action */
    get(actionId: ActionId | string): Promise<{
        approval_required: boolean;
        browser_allowed_domains: string[];
        browser_auth_integration: string | null;
        browser_start_url: string | null;
        checkpoint_enabled: boolean;
        created_at: string;
        delivery: "interrupt" | "queue";
        description: string;
        enable_caching: boolean;
        enable_citations: boolean;
        enabled: boolean;
        execution_tier: "direct" | "orchestrated" | "autonomous" | "browser" | "computer_use";
        id: string;
        input_schema: {
            [x: string]: unknown;
        };
        integration_tools: {
            endpoint: string;
            integration: string;
        }[];
        max_agent_turns: number;
        max_input_tokens: number | null;
        max_result_chars: number;
        max_tokens: number;
        model: string;
        name: string;
        result_schema: {
            [x: string]: unknown;
        } | null;
        slug: string;
        static_tools: {
            description: string;
            handler: string;
            input_schema: {
                [x: string]: unknown;
            };
            name: string;
        }[];
        system_prompt: string;
        thinking_effort: ("low" | "medium" | "high") | null;
        timeout_s: number;
        updated_at: string;
        urgency_keywords: string[];
        use_structured_output: boolean;
        version: number;
        workspace_id: string;
    } & import("../index.js").ResponseMetadata>;
    /** Update an action */
    update(actionId: ActionId | string, body: components['schemas']['UpdateSkillRequest']): Promise<{
        approval_required: boolean;
        browser_allowed_domains: string[];
        browser_auth_integration: string | null;
        browser_start_url: string | null;
        checkpoint_enabled: boolean;
        created_at: string;
        delivery: "interrupt" | "queue";
        description: string;
        enable_caching: boolean;
        enable_citations: boolean;
        enabled: boolean;
        execution_tier: "direct" | "orchestrated" | "autonomous" | "browser" | "computer_use";
        id: string;
        input_schema: {
            [x: string]: unknown;
        };
        integration_tools: {
            endpoint: string;
            integration: string;
        }[];
        max_agent_turns: number;
        max_input_tokens: number | null;
        max_result_chars: number;
        max_tokens: number;
        model: string;
        name: string;
        result_schema: {
            [x: string]: unknown;
        } | null;
        slug: string;
        static_tools: {
            description: string;
            handler: string;
            input_schema: {
                [x: string]: unknown;
            };
            name: string;
        }[];
        system_prompt: string;
        thinking_effort: ("low" | "medium" | "high") | null;
        timeout_s: number;
        updated_at: string;
        urgency_keywords: string[];
        use_structured_output: boolean;
        version: number;
        workspace_id: string;
    } & import("../index.js").ResponseMetadata>;
    /** Delete an action */
    delete(actionId: ActionId | string): Promise<void>;
    /** Get all context graphs and services that reference this action */
    getReferences(actionId: ActionId | string): Promise<{
        context_graph_references: {
            context_graph_id: string;
            context_graph_name: string;
            states: {
                state_name: string;
                tool_spec_category: string;
            }[];
            version: number;
        }[];
        service_references: string[];
        skill_id: string;
        skill_slug: string;
    } & import("../index.js").ResponseMetadata>;
    /**
     * Test an action with a sample input.
     * Executes the action in a sandbox and returns the result.
     */
    test(actionId: ActionId | string, body: components['schemas']['TestSkillRequest']): Promise<{
        cached_tokens: number;
        duration_ms: number;
        error?: string | null | undefined;
        input_tokens: number;
        output_tokens: number;
        result: string;
        rounds: number;
        sub_tool_logs: {
            duration_ms: number;
            input: {
                [x: string]: unknown;
            };
            output: string;
            round: number;
            succeeded: boolean;
            tool_name: string;
        }[];
    } & import("../index.js").ResponseMetadata>;
}
//# sourceMappingURL=actions.d.ts.map