import type { components } from '../generated/api.js';
import { WorkspaceScopedResource } from './base.js';
import type { ListParams } from '../core/utils.js';
export declare class TriggersResource extends WorkspaceScopedResource {
    list(params?: ListParams): Promise<{
        continuation_token?: number | null | undefined;
        has_more: boolean;
        items: {
            action_id: string;
            created_at?: string | null | undefined;
            created_by?: string | null | undefined;
            description?: string | null | undefined;
            event_filter?: {
                [x: string]: unknown;
            } | null | undefined;
            event_type: string;
            id: string;
            input_template: {
                [x: string]: unknown;
            };
            is_active: boolean;
            name: string;
            next_fire_at?: string | null | undefined;
            schedule?: string | null | undefined;
            timezone: string;
            updated_at?: string | null | undefined;
            workspace_id: string;
        }[];
        total?: number | null | undefined;
    } & import("../index.js").ResponseMetadata>;
    listAutoPaging(params?: ListParams): AsyncGenerator<{
        action_id: string;
        created_at?: string | null | undefined;
        created_by?: string | null | undefined;
        description?: string | null | undefined;
        event_filter?: {
            [x: string]: unknown;
        } | null | undefined;
        event_type: string;
        id: string;
        input_template: {
            [x: string]: unknown;
        };
        is_active: boolean;
        name: string;
        next_fire_at?: string | null | undefined;
        schedule?: string | null | undefined;
        timezone: string;
        updated_at?: string | null | undefined;
        workspace_id: string;
    }, any, any>;
    create(body: components['schemas']['CreateTriggerRequest']): Promise<{
        action_id: string;
        created_at?: string | null | undefined;
        created_by?: string | null | undefined;
        description?: string | null | undefined;
        event_filter?: {
            [x: string]: unknown;
        } | null | undefined;
        event_type: string;
        id: string;
        input_template: {
            [x: string]: unknown;
        };
        is_active: boolean;
        name: string;
        next_fire_at?: string | null | undefined;
        schedule?: string | null | undefined;
        timezone: string;
        updated_at?: string | null | undefined;
        workspace_id: string;
    } & import("../index.js").ResponseMetadata>;
    get(triggerId: string): Promise<{
        action_id: string;
        created_at?: string | null | undefined;
        created_by?: string | null | undefined;
        description?: string | null | undefined;
        event_filter?: {
            [x: string]: unknown;
        } | null | undefined;
        event_type: string;
        id: string;
        input_template: {
            [x: string]: unknown;
        };
        is_active: boolean;
        name: string;
        next_fire_at?: string | null | undefined;
        schedule?: string | null | undefined;
        timezone: string;
        updated_at?: string | null | undefined;
        workspace_id: string;
    } & import("../index.js").ResponseMetadata>;
    update(triggerId: string, body: components['schemas']['UpdateTriggerRequest']): Promise<{
        action_id: string;
        created_at?: string | null | undefined;
        created_by?: string | null | undefined;
        description?: string | null | undefined;
        event_filter?: {
            [x: string]: unknown;
        } | null | undefined;
        event_type: string;
        id: string;
        input_template: {
            [x: string]: unknown;
        };
        is_active: boolean;
        name: string;
        next_fire_at?: string | null | undefined;
        schedule?: string | null | undefined;
        timezone: string;
        updated_at?: string | null | undefined;
        workspace_id: string;
    } & import("../index.js").ResponseMetadata>;
    delete(triggerId: string): Promise<void>;
    fire(triggerId: string): Promise<{
        fired_event_id: string;
        status?: "fired" | undefined;
        trigger_id: string;
    } & import("../index.js").ResponseMetadata>;
    pause(triggerId: string): Promise<{
        action_id: string;
        created_at?: string | null | undefined;
        created_by?: string | null | undefined;
        description?: string | null | undefined;
        event_filter?: {
            [x: string]: unknown;
        } | null | undefined;
        event_type: string;
        id: string;
        input_template: {
            [x: string]: unknown;
        };
        is_active: boolean;
        name: string;
        next_fire_at?: string | null | undefined;
        schedule?: string | null | undefined;
        timezone: string;
        updated_at?: string | null | undefined;
        workspace_id: string;
    } & import("../index.js").ResponseMetadata>;
    resume(triggerId: string): Promise<{
        action_id: string;
        created_at?: string | null | undefined;
        created_by?: string | null | undefined;
        description?: string | null | undefined;
        event_filter?: {
            [x: string]: unknown;
        } | null | undefined;
        event_type: string;
        id: string;
        input_template: {
            [x: string]: unknown;
        };
        is_active: boolean;
        name: string;
        next_fire_at?: string | null | undefined;
        schedule?: string | null | undefined;
        timezone: string;
        updated_at?: string | null | undefined;
        workspace_id: string;
    } & import("../index.js").ResponseMetadata>;
    listRuns(triggerId: string, params?: ListParams): Promise<{
        continuation_token?: number | null | undefined;
        has_more: boolean;
        items: {
            created_at?: string | null | undefined;
            data: {
                [x: string]: unknown;
            };
            effective_at?: string | null | undefined;
            event_id: string;
            event_type: string;
        }[];
        total?: number | null | undefined;
    } & import("../index.js").ResponseMetadata>;
    listRunsAutoPaging(triggerId: string, params?: ListParams): AsyncGenerator<{
        created_at?: string | null | undefined;
        data: {
            [x: string]: unknown;
        };
        effective_at?: string | null | undefined;
        event_id: string;
        event_type: string;
    }, any, any>;
}
//# sourceMappingURL=triggers.d.ts.map