import type { components } from '../generated/api.js';
import type { IntegrationId } from '../core/branded-types.js';
import { WorkspaceScopedResource } from './base.js';
import type { ListParams } from '../core/utils.js';
export interface ListIntegrationsParams extends ListParams {
    protocol?: string;
    enabled?: boolean;
    search?: string;
}
/**
 * Manage integrations — connections to external systems (EHRs, CRMs, etc.).
 * Integrations power connector data acquisition and skill tool calls.
 */
export declare class IntegrationsResource extends WorkspaceScopedResource {
    /** Create a new integration */
    create(body: components['schemas']['CreateIntegrationRequest']): Promise<{
        auth?: {
            assertion_algorithm?: ("RS384" | "ES384") | null | undefined;
            assertion_audience?: string | null | undefined;
            assertion_issuer?: string | null | undefined;
            assertion_kid?: string | null | undefined;
            assertion_scopes_in_jwt?: boolean | undefined;
            assertion_subject?: string | null | undefined;
            client_id?: string | null | undefined;
            client_secret_ssm_param_path?: string | null | undefined;
            gcp_scopes?: string[] | null | undefined;
            header_name?: string | null | undefined;
            private_key_ssm_param_path?: string | null | undefined;
            scopes?: string[] | null | undefined;
            ssm_param_path?: string | null | undefined;
            token_lifetime_seconds?: number | undefined;
            token_ssm_param_path?: string | null | undefined;
            token_url?: string | null | undefined;
            type: "api_key_header" | "bearer_token" | "oauth2_client_credentials" | "oauth2_jwt_bearer" | "gcp_wif" | "smart_backend_services";
        } | null | undefined;
        base_url?: string | undefined;
        builtin?: boolean | undefined;
        created_at: string;
        display_name: string;
        enabled: boolean;
        endpoints?: {
            auth?: {
                assertion_algorithm?: ("RS384" | "ES384") | null | undefined;
                assertion_audience?: string | null | undefined;
                assertion_issuer?: string | null | undefined;
                assertion_kid?: string | null | undefined;
                assertion_scopes_in_jwt?: boolean | undefined;
                assertion_subject?: string | null | undefined;
                client_id?: string | null | undefined;
                client_secret_ssm_param_path?: string | null | undefined;
                gcp_scopes?: string[] | null | undefined;
                header_name?: string | null | undefined;
                private_key_ssm_param_path?: string | null | undefined;
                scopes?: string[] | null | undefined;
                ssm_param_path?: string | null | undefined;
                token_lifetime_seconds?: number | undefined;
                token_ssm_param_path?: string | null | undefined;
                token_url?: string | null | undefined;
                type: "api_key_header" | "bearer_token" | "oauth2_client_credentials" | "oauth2_jwt_bearer" | "gcp_wif" | "smart_backend_services";
            } | null | undefined;
            base_url?: string | null | undefined;
            body_format?: "json" | "form" | undefined;
            description: string;
            headers?: {
                [x: string]: string;
            } | undefined;
            input_schema?: {
                [x: string]: unknown;
            } | undefined;
            max_result_length?: number | undefined;
            method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
            name: string;
            path: string;
            response_filter?: string[] | null | undefined;
            response_mapping?: {
                [x: string]: string;
            } | null | undefined;
            result_delivery?: "interrupt" | "queue" | undefined;
            result_key?: string | null | undefined;
            result_template?: string | null | undefined;
            retry_config?: {
                max_retries?: number | undefined;
                retry_on_status?: number[] | undefined;
            } | undefined;
        }[] | undefined;
        id: string;
        mcp_args?: string[] | null | undefined;
        mcp_command?: string | null | undefined;
        mcp_headers?: {
            [x: string]: string;
        } | null | undefined;
        mcp_transport?: ("stdio" | "sse" | "http") | null | undefined;
        mcp_url?: string | null | undefined;
        name: string;
        protocol: "rest" | "fhir" | "mcp" | "desktop";
        updated_at: string;
        workspace_id: string;
    } & import("../index.js").ResponseMetadata>;
    /** List integrations */
    list(params?: ListIntegrationsParams): Promise<{
        continuation_token?: number | null | undefined;
        has_more: boolean;
        items: {
            auth?: {
                assertion_algorithm?: ("RS384" | "ES384") | null | undefined;
                assertion_audience?: string | null | undefined;
                assertion_issuer?: string | null | undefined;
                assertion_kid?: string | null | undefined;
                assertion_scopes_in_jwt?: boolean | undefined;
                assertion_subject?: string | null | undefined;
                client_id?: string | null | undefined;
                client_secret_ssm_param_path?: string | null | undefined;
                gcp_scopes?: string[] | null | undefined;
                header_name?: string | null | undefined;
                private_key_ssm_param_path?: string | null | undefined;
                scopes?: string[] | null | undefined;
                ssm_param_path?: string | null | undefined;
                token_lifetime_seconds?: number | undefined;
                token_ssm_param_path?: string | null | undefined;
                token_url?: string | null | undefined;
                type: "api_key_header" | "bearer_token" | "oauth2_client_credentials" | "oauth2_jwt_bearer" | "gcp_wif" | "smart_backend_services";
            } | null | undefined;
            base_url?: string | undefined;
            builtin?: boolean | undefined;
            created_at: string;
            display_name: string;
            enabled: boolean;
            endpoints?: {
                auth?: {
                    assertion_algorithm?: ("RS384" | "ES384") | null | undefined;
                    assertion_audience?: string | null | undefined;
                    assertion_issuer?: string | null | undefined;
                    assertion_kid?: string | null | undefined;
                    assertion_scopes_in_jwt?: boolean | undefined;
                    assertion_subject?: string | null | undefined;
                    client_id?: string | null | undefined;
                    client_secret_ssm_param_path?: string | null | undefined;
                    gcp_scopes?: string[] | null | undefined;
                    header_name?: string | null | undefined;
                    private_key_ssm_param_path?: string | null | undefined;
                    scopes?: string[] | null | undefined;
                    ssm_param_path?: string | null | undefined;
                    token_lifetime_seconds?: number | undefined;
                    token_ssm_param_path?: string | null | undefined;
                    token_url?: string | null | undefined;
                    type: "api_key_header" | "bearer_token" | "oauth2_client_credentials" | "oauth2_jwt_bearer" | "gcp_wif" | "smart_backend_services";
                } | null | undefined;
                base_url?: string | null | undefined;
                body_format?: "json" | "form" | undefined;
                description: string;
                headers?: {
                    [x: string]: string;
                } | undefined;
                input_schema?: {
                    [x: string]: unknown;
                } | undefined;
                max_result_length?: number | undefined;
                method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
                name: string;
                path: string;
                response_filter?: string[] | null | undefined;
                response_mapping?: {
                    [x: string]: string;
                } | null | undefined;
                result_delivery?: "interrupt" | "queue" | undefined;
                result_key?: string | null | undefined;
                result_template?: string | null | undefined;
                retry_config?: {
                    max_retries?: number | undefined;
                    retry_on_status?: number[] | undefined;
                } | undefined;
            }[] | undefined;
            id: string;
            mcp_args?: string[] | null | undefined;
            mcp_command?: string | null | undefined;
            mcp_headers?: {
                [x: string]: string;
            } | null | undefined;
            mcp_transport?: ("stdio" | "sse" | "http") | null | undefined;
            mcp_url?: string | null | undefined;
            name: string;
            protocol: "rest" | "fhir" | "mcp" | "desktop";
            updated_at: string;
            workspace_id: string;
        }[];
        total?: number | null | undefined;
    } & import("../index.js").ResponseMetadata>;
    listAutoPaging(params?: ListIntegrationsParams): AsyncGenerator<{
        auth?: {
            assertion_algorithm?: ("RS384" | "ES384") | null | undefined;
            assertion_audience?: string | null | undefined;
            assertion_issuer?: string | null | undefined;
            assertion_kid?: string | null | undefined;
            assertion_scopes_in_jwt?: boolean | undefined;
            assertion_subject?: string | null | undefined;
            client_id?: string | null | undefined;
            client_secret_ssm_param_path?: string | null | undefined;
            gcp_scopes?: string[] | null | undefined;
            header_name?: string | null | undefined;
            private_key_ssm_param_path?: string | null | undefined;
            scopes?: string[] | null | undefined;
            ssm_param_path?: string | null | undefined;
            token_lifetime_seconds?: number | undefined;
            token_ssm_param_path?: string | null | undefined;
            token_url?: string | null | undefined;
            type: "api_key_header" | "bearer_token" | "oauth2_client_credentials" | "oauth2_jwt_bearer" | "gcp_wif" | "smart_backend_services";
        } | null | undefined;
        base_url?: string | undefined;
        builtin?: boolean | undefined;
        created_at: string;
        display_name: string;
        enabled: boolean;
        endpoints?: {
            auth?: {
                assertion_algorithm?: ("RS384" | "ES384") | null | undefined;
                assertion_audience?: string | null | undefined;
                assertion_issuer?: string | null | undefined;
                assertion_kid?: string | null | undefined;
                assertion_scopes_in_jwt?: boolean | undefined;
                assertion_subject?: string | null | undefined;
                client_id?: string | null | undefined;
                client_secret_ssm_param_path?: string | null | undefined;
                gcp_scopes?: string[] | null | undefined;
                header_name?: string | null | undefined;
                private_key_ssm_param_path?: string | null | undefined;
                scopes?: string[] | null | undefined;
                ssm_param_path?: string | null | undefined;
                token_lifetime_seconds?: number | undefined;
                token_ssm_param_path?: string | null | undefined;
                token_url?: string | null | undefined;
                type: "api_key_header" | "bearer_token" | "oauth2_client_credentials" | "oauth2_jwt_bearer" | "gcp_wif" | "smart_backend_services";
            } | null | undefined;
            base_url?: string | null | undefined;
            body_format?: "json" | "form" | undefined;
            description: string;
            headers?: {
                [x: string]: string;
            } | undefined;
            input_schema?: {
                [x: string]: unknown;
            } | undefined;
            max_result_length?: number | undefined;
            method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
            name: string;
            path: string;
            response_filter?: string[] | null | undefined;
            response_mapping?: {
                [x: string]: string;
            } | null | undefined;
            result_delivery?: "interrupt" | "queue" | undefined;
            result_key?: string | null | undefined;
            result_template?: string | null | undefined;
            retry_config?: {
                max_retries?: number | undefined;
                retry_on_status?: number[] | undefined;
            } | undefined;
        }[] | undefined;
        id: string;
        mcp_args?: string[] | null | undefined;
        mcp_command?: string | null | undefined;
        mcp_headers?: {
            [x: string]: string;
        } | null | undefined;
        mcp_transport?: ("stdio" | "sse" | "http") | null | undefined;
        mcp_url?: string | null | undefined;
        name: string;
        protocol: "rest" | "fhir" | "mcp" | "desktop";
        updated_at: string;
        workspace_id: string;
    }, any, any>;
    /** Get a single integration */
    get(integrationId: IntegrationId | string): Promise<{
        auth?: {
            assertion_algorithm?: ("RS384" | "ES384") | null | undefined;
            assertion_audience?: string | null | undefined;
            assertion_issuer?: string | null | undefined;
            assertion_kid?: string | null | undefined;
            assertion_scopes_in_jwt?: boolean | undefined;
            assertion_subject?: string | null | undefined;
            client_id?: string | null | undefined;
            client_secret_ssm_param_path?: string | null | undefined;
            gcp_scopes?: string[] | null | undefined;
            header_name?: string | null | undefined;
            private_key_ssm_param_path?: string | null | undefined;
            scopes?: string[] | null | undefined;
            ssm_param_path?: string | null | undefined;
            token_lifetime_seconds?: number | undefined;
            token_ssm_param_path?: string | null | undefined;
            token_url?: string | null | undefined;
            type: "api_key_header" | "bearer_token" | "oauth2_client_credentials" | "oauth2_jwt_bearer" | "gcp_wif" | "smart_backend_services";
        } | null | undefined;
        base_url?: string | undefined;
        builtin?: boolean | undefined;
        created_at: string;
        display_name: string;
        enabled: boolean;
        endpoints?: {
            auth?: {
                assertion_algorithm?: ("RS384" | "ES384") | null | undefined;
                assertion_audience?: string | null | undefined;
                assertion_issuer?: string | null | undefined;
                assertion_kid?: string | null | undefined;
                assertion_scopes_in_jwt?: boolean | undefined;
                assertion_subject?: string | null | undefined;
                client_id?: string | null | undefined;
                client_secret_ssm_param_path?: string | null | undefined;
                gcp_scopes?: string[] | null | undefined;
                header_name?: string | null | undefined;
                private_key_ssm_param_path?: string | null | undefined;
                scopes?: string[] | null | undefined;
                ssm_param_path?: string | null | undefined;
                token_lifetime_seconds?: number | undefined;
                token_ssm_param_path?: string | null | undefined;
                token_url?: string | null | undefined;
                type: "api_key_header" | "bearer_token" | "oauth2_client_credentials" | "oauth2_jwt_bearer" | "gcp_wif" | "smart_backend_services";
            } | null | undefined;
            base_url?: string | null | undefined;
            body_format?: "json" | "form" | undefined;
            description: string;
            headers?: {
                [x: string]: string;
            } | undefined;
            input_schema?: {
                [x: string]: unknown;
            } | undefined;
            max_result_length?: number | undefined;
            method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
            name: string;
            path: string;
            response_filter?: string[] | null | undefined;
            response_mapping?: {
                [x: string]: string;
            } | null | undefined;
            result_delivery?: "interrupt" | "queue" | undefined;
            result_key?: string | null | undefined;
            result_template?: string | null | undefined;
            retry_config?: {
                max_retries?: number | undefined;
                retry_on_status?: number[] | undefined;
            } | undefined;
        }[] | undefined;
        id: string;
        mcp_args?: string[] | null | undefined;
        mcp_command?: string | null | undefined;
        mcp_headers?: {
            [x: string]: string;
        } | null | undefined;
        mcp_transport?: ("stdio" | "sse" | "http") | null | undefined;
        mcp_url?: string | null | undefined;
        name: string;
        protocol: "rest" | "fhir" | "mcp" | "desktop";
        updated_at: string;
        workspace_id: string;
    } & import("../index.js").ResponseMetadata>;
    /** Update integration configuration */
    update(integrationId: IntegrationId | string, body: components['schemas']['UpdateIntegrationRequest']): Promise<{
        auth?: {
            assertion_algorithm?: ("RS384" | "ES384") | null | undefined;
            assertion_audience?: string | null | undefined;
            assertion_issuer?: string | null | undefined;
            assertion_kid?: string | null | undefined;
            assertion_scopes_in_jwt?: boolean | undefined;
            assertion_subject?: string | null | undefined;
            client_id?: string | null | undefined;
            client_secret_ssm_param_path?: string | null | undefined;
            gcp_scopes?: string[] | null | undefined;
            header_name?: string | null | undefined;
            private_key_ssm_param_path?: string | null | undefined;
            scopes?: string[] | null | undefined;
            ssm_param_path?: string | null | undefined;
            token_lifetime_seconds?: number | undefined;
            token_ssm_param_path?: string | null | undefined;
            token_url?: string | null | undefined;
            type: "api_key_header" | "bearer_token" | "oauth2_client_credentials" | "oauth2_jwt_bearer" | "gcp_wif" | "smart_backend_services";
        } | null | undefined;
        base_url?: string | undefined;
        builtin?: boolean | undefined;
        created_at: string;
        display_name: string;
        enabled: boolean;
        endpoints?: {
            auth?: {
                assertion_algorithm?: ("RS384" | "ES384") | null | undefined;
                assertion_audience?: string | null | undefined;
                assertion_issuer?: string | null | undefined;
                assertion_kid?: string | null | undefined;
                assertion_scopes_in_jwt?: boolean | undefined;
                assertion_subject?: string | null | undefined;
                client_id?: string | null | undefined;
                client_secret_ssm_param_path?: string | null | undefined;
                gcp_scopes?: string[] | null | undefined;
                header_name?: string | null | undefined;
                private_key_ssm_param_path?: string | null | undefined;
                scopes?: string[] | null | undefined;
                ssm_param_path?: string | null | undefined;
                token_lifetime_seconds?: number | undefined;
                token_ssm_param_path?: string | null | undefined;
                token_url?: string | null | undefined;
                type: "api_key_header" | "bearer_token" | "oauth2_client_credentials" | "oauth2_jwt_bearer" | "gcp_wif" | "smart_backend_services";
            } | null | undefined;
            base_url?: string | null | undefined;
            body_format?: "json" | "form" | undefined;
            description: string;
            headers?: {
                [x: string]: string;
            } | undefined;
            input_schema?: {
                [x: string]: unknown;
            } | undefined;
            max_result_length?: number | undefined;
            method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | undefined;
            name: string;
            path: string;
            response_filter?: string[] | null | undefined;
            response_mapping?: {
                [x: string]: string;
            } | null | undefined;
            result_delivery?: "interrupt" | "queue" | undefined;
            result_key?: string | null | undefined;
            result_template?: string | null | undefined;
            retry_config?: {
                max_retries?: number | undefined;
                retry_on_status?: number[] | undefined;
            } | undefined;
        }[] | undefined;
        id: string;
        mcp_args?: string[] | null | undefined;
        mcp_command?: string | null | undefined;
        mcp_headers?: {
            [x: string]: string;
        } | null | undefined;
        mcp_transport?: ("stdio" | "sse" | "http") | null | undefined;
        mcp_url?: string | null | undefined;
        name: string;
        protocol: "rest" | "fhir" | "mcp" | "desktop";
        updated_at: string;
        workspace_id: string;
    } & import("../index.js").ResponseMetadata>;
    /** Delete an integration */
    delete(integrationId: IntegrationId | string): Promise<void>;
    /**
     * Test a specific endpoint on an integration with given params.
     * Used in the developer console to validate integration config.
     */
    testEndpoint(integrationId: IntegrationId | string, endpointName: string, body: components['schemas']['TestEndpointRequest']): Promise<{
        after_filter?: unknown;
        after_mapping?: unknown;
        duration_ms?: number | undefined;
        error?: string | null | undefined;
        final_result?: string | null | undefined;
        raw_response?: unknown;
        retries?: number | undefined;
        status_code?: number | null | undefined;
    } & import("../index.js").ResponseMetadata>;
    /** Check health of all integrations in the workspace */
    getHealthCheck(): Promise<{
        [x: string]: unknown;
    } & import("../index.js").ResponseMetadata>;
}
//# sourceMappingURL=integrations.d.ts.map