import type { components } from '../generated/api.js';
import type { SkillId } from '../core/branded-types.js';
import { WorkspaceScopedResource } from './base.js';
import type { ListParams } from '../core/utils.js';
export interface ListSkillsParams extends ListParams {
    search?: string;
    enabled?: boolean;
    execution_tier?: string;
}
/**
 * Manage skills — reusable AI capabilities that agents can call.
 * Skills define a structured input/output schema and an execution tier.
 */
export declare class SkillsResource extends WorkspaceScopedResource {
    /** Create a new skill */
    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 skills in the workspace */
    list(params?: ListSkillsParams): 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?: ListSkillsParams): 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 skill */
    get(skillId: SkillId | 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 a skill */
    update(skillId: SkillId | 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 a skill */
    delete(skillId: SkillId | string): Promise<void>;
    /**
     * Test a skill with a sample input.
     * Executes the skill in a sandbox and returns the result.
     */
    test(skillId: SkillId | 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=skills.d.ts.map