import type { AmigoFetch } from '../core/openapi-client';
import type { components, operations } from '../generated/api-types';
import type { OrgId } from '../core/branded-types';
/** Branded type for Context Graph (HSM) IDs. */
type ContextGraphId = string;
/** Resource for managing context graphs (service hierarchical state machines). */
export declare class ContextGraphResource {
    private c;
    private orgId;
    constructor(c: AmigoFetch, orgId: OrgId);
    /** Create a new context graph. */
    createContextGraph(options: {
        body: components['schemas']['organization__create_service_hierarchical_state_machine__Request'];
        headers?: operations['create-service-hierarchical-state-machine']['parameters']['header'];
    }): Promise<{
        id: string;
    }>;
    /** List context graphs for the organization. */
    getContextGraphs(options?: {
        query?: operations['get-service-hierarchical-state-machines']['parameters']['query'];
        headers?: operations['get-service-hierarchical-state-machines']['parameters']['header'];
    }): Promise<{
        service_hierarchical_state_machines: components["schemas"]["StateMachineInstance"][];
        has_more: boolean;
        continuation_token: number | null;
    }>;
    /** Create a new version of a context graph. */
    createContextGraphVersion(options: {
        contextGraphId: ContextGraphId;
        body: components['schemas']['organization__create_service_hierarchical_state_machine_version__Request'];
        query?: operations['create-service-hierarchical-state-machine-version']['parameters']['query'];
        headers?: operations['create-service-hierarchical-state-machine-version']['parameters']['header'];
    }): Promise<{
        version: number;
        created_at: string;
    }>;
    /** Delete a context graph. */
    deleteContextGraph(options: {
        contextGraphId: ContextGraphId;
        headers?: operations['delete-service-hierarchical-state-machine']['parameters']['header'];
    }): Promise<void>;
    /** Get versions of a context graph. */
    getContextGraphVersions(options: {
        contextGraphId: ContextGraphId;
        query?: operations['get-service-hierarchical-state-machine-versions']['parameters']['query'];
        headers?: operations['get-service-hierarchical-state-machine-versions']['parameters']['header'];
    }): Promise<{
        state_machine_versions: components["schemas"]["ServiceHierarchicalStateMachineInstance"][];
        has_more: boolean;
        continuation_token: number | null;
    }>;
    /** Alias for getContextGraphs. */
    list(options?: Parameters<ContextGraphResource['getContextGraphs']>[0]): Promise<{
        service_hierarchical_state_machines: components["schemas"]["StateMachineInstance"][];
        has_more: boolean;
        continuation_token: number | null;
    }>;
    /** Alias for createContextGraph. */
    create(options: Parameters<ContextGraphResource['createContextGraph']>[0]): Promise<{
        id: string;
    }>;
    /** Alias for deleteContextGraph. */
    delete(options: Parameters<ContextGraphResource['deleteContextGraph']>[0]): Promise<void>;
}
export {};
