import { z, ZodType } from 'zod';

declare const ActionInvocationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
    kind: z.ZodLiteral<"slash-command">;
    command: z.ZodString;
    toolFactory: z.ZodOptional<z.ZodString>;
}, z.core.$strip>, z.ZodObject<{
    kind: z.ZodLiteral<"mcp-tool">;
    server: z.ZodString;
    name: z.ZodString;
}, z.core.$strip>, z.ZodObject<{
    kind: z.ZodLiteral<"api-endpoint">;
    method: z.ZodEnum<{
        GET: "GET";
        POST: "POST";
        PATCH: "PATCH";
        DELETE: "DELETE";
    }>;
    path: z.ZodString;
    requestSchema: z.ZodOptional<z.ZodString>;
    responseSchema: z.ZodOptional<z.ZodString>;
}, z.core.$strip>, z.ZodObject<{
    kind: z.ZodLiteral<"script-execution">;
    resourceId: z.ZodString;
}, z.core.$strip>], "kind">;

declare const OntologyScopeSchema: z.ZodDefault<z.ZodObject<{
    objectTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
        id: z.ZodString;
        label: z.ZodOptional<z.ZodString>;
        description: z.ZodOptional<z.ZodString>;
        ownerSystemId: z.ZodOptional<z.ZodString>;
        aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
        properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
        storage: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
    }, z.core.$loose>>>>;
    linkTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
        id: z.ZodString;
        label: z.ZodOptional<z.ZodString>;
        description: z.ZodOptional<z.ZodString>;
        ownerSystemId: z.ZodOptional<z.ZodString>;
        aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
        from: z.ZodString;
        to: z.ZodString;
        cardinality: z.ZodOptional<z.ZodString>;
        via: z.ZodOptional<z.ZodString>;
    }, z.core.$loose>>>>;
    actionTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
        id: z.ZodString;
        label: z.ZodOptional<z.ZodString>;
        description: z.ZodOptional<z.ZodString>;
        ownerSystemId: z.ZodOptional<z.ZodString>;
        aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
        actsOn: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
        input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
        effects: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
    }, z.core.$loose>>>>;
    catalogTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
        id: z.ZodString;
        label: z.ZodOptional<z.ZodString>;
        description: z.ZodOptional<z.ZodString>;
        ownerSystemId: z.ZodOptional<z.ZodString>;
        aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
        kind: z.ZodOptional<z.ZodString>;
        appliesTo: z.ZodOptional<z.ZodString>;
        entries: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
    }, z.core.$loose>>>>;
    eventTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
        id: z.ZodString;
        label: z.ZodOptional<z.ZodString>;
        description: z.ZodOptional<z.ZodString>;
        ownerSystemId: z.ZodOptional<z.ZodString>;
        aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
        payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
    }, z.core.$loose>>>>;
    interfaceTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
        id: z.ZodString;
        label: z.ZodOptional<z.ZodString>;
        description: z.ZodOptional<z.ZodString>;
        ownerSystemId: z.ZodOptional<z.ZodString>;
        aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
        properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
    }, z.core.$loose>>>>;
    valueTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
        id: z.ZodString;
        label: z.ZodOptional<z.ZodString>;
        description: z.ZodOptional<z.ZodString>;
        ownerSystemId: z.ZodOptional<z.ZodString>;
        aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
        primitive: z.ZodOptional<z.ZodString>;
    }, z.core.$loose>>>>;
    sharedProperties: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
        id: z.ZodString;
        label: z.ZodOptional<z.ZodString>;
        description: z.ZodOptional<z.ZodString>;
        ownerSystemId: z.ZodOptional<z.ZodString>;
        aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
        valueType: z.ZodOptional<z.ZodString>;
        searchable: z.ZodOptional<z.ZodBoolean>;
        pii: z.ZodOptional<z.ZodBoolean>;
    }, z.core.$loose>>>>;
    groups: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
        id: z.ZodString;
        label: z.ZodOptional<z.ZodString>;
        description: z.ZodOptional<z.ZodString>;
        ownerSystemId: z.ZodOptional<z.ZodString>;
        aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
        members: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
    }, z.core.$loose>>>>;
    endpoints: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
        id: z.ZodString;
        label: z.ZodOptional<z.ZodString>;
        description: z.ZodOptional<z.ZodString>;
        ownerSystemId: z.ZodOptional<z.ZodString>;
        aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
        route: z.ZodOptional<z.ZodString>;
    }, z.core.$loose>>>>;
}, z.core.$strip>>;
type OntologyScope = z.infer<typeof OntologyScopeSchema>;

declare const SystemApiInterfaceSchema: z.ZodObject<{
    lifecycle: z.ZodDefault<z.ZodEnum<{
        active: "active";
        deprecated: "deprecated";
        draft: "draft";
        archived: "archived";
        disabled: "disabled";
    }>>;
    readinessProfile: z.ZodOptional<z.ZodEnum<{
        "sales.lead-gen.api": "sales.lead-gen.api";
        "sales.crm.api": "sales.crm.api";
        "sales.lead-gen.crm-handoff": "sales.lead-gen.crm-handoff";
    }>>;
    resourceIds: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
}, z.core.$strict>;
type JsonPrimitive = string | number | boolean | null;
type JsonValue = JsonPrimitive | JsonValue[] | {
    [key: string]: JsonValue;
};
/** Explicit interface needed to annotate the recursive SystemEntrySchema. */
interface SystemEntry {
    id: string;
    label?: string;
    title?: string;
    description?: string;
    kind?: 'product' | 'operational' | 'platform' | 'diagnostic';
    parentSystemId?: string;
    ui?: {
        path: string;
        surfaces: string[];
        icon?: string;
        order?: number;
    };
    lifecycle?: 'draft' | 'beta' | 'active' | 'deprecated' | 'archived';
    responsibleRoleId?: string;
    governedByKnowledge?: string[];
    actions?: {
        actionId: string;
        intent: 'exposes' | 'consumes';
        invocation?: unknown;
    }[];
    policies?: string[];
    drivesGoals?: string[];
    apiInterface?: z.infer<typeof SystemApiInterfaceSchema>;
    /** @deprecated Use lifecycle. Accepted for one publish cycle. */
    status?: 'active' | 'deprecated' | 'archived';
    path?: string;
    icon?: string;
    uiPosition?: 'sidebar-primary' | 'sidebar-bottom';
    enabled?: boolean;
    devOnly?: boolean;
    requiresAdmin?: boolean;
    order: number;
    config?: Record<string, JsonValue>;
    ontology?: OntologyScope;
    systems?: Record<string, SystemEntry>;
    subsystems?: Record<string, SystemEntry>;
}
declare const SystemEntrySchema: ZodType<SystemEntry>;

declare const SurfaceTypeSchema: z.ZodEnum<{
    dashboard: "dashboard";
    settings: "settings";
    graph: "graph";
    page: "page";
    detail: "detail";
    list: "list";
}>;
interface SidebarSurfaceNode {
    type: 'surface';
    label: string;
    path: string;
    surfaceType: z.infer<typeof SurfaceTypeSchema>;
    description?: string;
    icon?: string;
    order?: number;
    targets?: {
        systems?: string[];
        entities?: string[];
        resources?: string[];
        actions?: string[];
    };
    devOnly?: boolean;
    requiresAdmin?: boolean;
}
interface SidebarGroupNode {
    type: 'group';
    label: string;
    description?: string;
    icon?: string;
    order?: number;
    children: Record<string, SidebarNode>;
}
type SidebarNode = SidebarSurfaceNode | SidebarGroupNode;

declare const OrgKnowledgeKindSchema: z.ZodEnum<{
    playbook: "playbook";
    strategy: "strategy";
    reference: "reference";
}>;
declare const OrgKnowledgeNodeSchema: z.ZodObject<{
    id: z.ZodString;
    kind: z.ZodEnum<{
        playbook: "playbook";
        strategy: "strategy";
        reference: "reference";
    }>;
    title: z.ZodString;
    summary: z.ZodString;
    icon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
        message: "message";
        error: "error";
        agent: "agent";
        workflow: "workflow";
        "google-sheets": "google-sheets";
        dashboard: "dashboard";
        calendar: "calendar";
        sales: "sales";
        crm: "crm";
        "lead-gen": "lead-gen";
        projects: "projects";
        clients: "clients";
        operations: "operations";
        monitoring: "monitoring";
        knowledge: "knowledge";
        settings: "settings";
        admin: "admin";
        archive: "archive";
        business: "business";
        finance: "finance";
        platform: "platform";
        seo: "seo";
        playbook: "playbook";
        strategy: "strategy";
        reference: "reference";
        integration: "integration";
        database: "database";
        user: "user";
        team: "team";
        gmail: "gmail";
        attio: "attio";
        overview: "overview";
        "command-view": "command-view";
        "command-queue": "command-queue";
        pipeline: "pipeline";
        lists: "lists";
        resources: "resources";
        approve: "approve";
        reject: "reject";
        retry: "retry";
        edit: "edit";
        view: "view";
        launch: "launch";
        "message-plus": "message-plus";
        escalate: "escalate";
        promote: "promote";
        submit: "submit";
        email: "email";
        success: "success";
        warning: "warning";
        info: "info";
        pending: "pending";
        bolt: "bolt";
        building: "building";
        briefcase: "briefcase";
        apps: "apps";
        graph: "graph";
        shield: "shield";
        users: "users";
        "chart-bar": "chart-bar";
        search: "search";
    }>, z.ZodString]>>;
    externalUrl: z.ZodOptional<z.ZodString>;
    sourceFilePath: z.ZodOptional<z.ZodString>;
    body: z.ZodString;
    links: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodUnion<readonly [z.ZodObject<{
        target: z.ZodObject<{
            kind: z.ZodEnum<{
                knowledge: "knowledge";
                system: "system";
                resource: "resource";
                action: "action";
                ontology: "ontology";
                role: "role";
                client: "client";
                stage: "stage";
                goal: "goal";
                "customer-segment": "customer-segment";
                offering: "offering";
            }>;
            id: z.ZodString;
        }, z.core.$strip>;
    }, z.core.$strip>, z.ZodObject<{
        nodeId: z.ZodUnion<readonly [z.ZodString, z.ZodTemplateLiteral<`ontology:${string}`>]>;
    }, z.core.$strip>]>, z.ZodTransform<{
        target: {
            kind: "knowledge" | "system" | "resource" | "action" | "ontology" | "role" | "client" | "stage" | "goal" | "customer-segment" | "offering";
            id: string;
        };
        nodeId: string;
    }, {
        nodeId: string;
    } | {
        target: {
            kind: "knowledge" | "system" | "resource" | "action" | "ontology" | "role" | "client" | "stage" | "goal" | "customer-segment" | "offering";
            id: string;
        };
    }>>>>;
    ownerIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
    updatedAt: z.ZodString;
}, z.core.$strip>;
type OrgKnowledgeNode = z.infer<typeof OrgKnowledgeNodeSchema>;
type OrgKnowledgeKind = z.infer<typeof OrgKnowledgeKindSchema>;

declare const OrganizationModelIconTokenSchema: z.ZodUnion<readonly [z.ZodEnum<{
    message: "message";
    error: "error";
    agent: "agent";
    workflow: "workflow";
    "google-sheets": "google-sheets";
    dashboard: "dashboard";
    calendar: "calendar";
    sales: "sales";
    crm: "crm";
    "lead-gen": "lead-gen";
    projects: "projects";
    clients: "clients";
    operations: "operations";
    monitoring: "monitoring";
    knowledge: "knowledge";
    settings: "settings";
    admin: "admin";
    archive: "archive";
    business: "business";
    finance: "finance";
    platform: "platform";
    seo: "seo";
    playbook: "playbook";
    strategy: "strategy";
    reference: "reference";
    integration: "integration";
    database: "database";
    user: "user";
    team: "team";
    gmail: "gmail";
    attio: "attio";
    overview: "overview";
    "command-view": "command-view";
    "command-queue": "command-queue";
    pipeline: "pipeline";
    lists: "lists";
    resources: "resources";
    approve: "approve";
    reject: "reject";
    retry: "retry";
    edit: "edit";
    view: "view";
    launch: "launch";
    "message-plus": "message-plus";
    escalate: "escalate";
    promote: "promote";
    submit: "submit";
    email: "email";
    success: "success";
    warning: "warning";
    info: "info";
    pending: "pending";
    bolt: "bolt";
    building: "building";
    briefcase: "briefcase";
    apps: "apps";
    graph: "graph";
    shield: "shield";
    users: "users";
    "chart-bar": "chart-bar";
    search: "search";
}>, z.ZodString]>;
type OrganizationModelIconToken = z.infer<typeof OrganizationModelIconTokenSchema>;

/**
 * SystemEntry extended with the recursive tree slots (`systems`, `subsystems`).
 * `OrganizationModelSystemEntry` is inferred from `SystemEntrySchema: ZodType<SystemEntry>`
 * so it already carries these fields; this alias re-exports it under the tree-walker name
 * for clarity at call sites.
 */
type SystemEntryWithTree = OrganizationModelSystemEntry;
/**
 * Flat depth-first enumeration of every system in the model tree.
 * Each entry carries the computed full path and the system node.
 * Order: parent before children (pre-order DFS).
 *
 * Example result paths: `'sales'`, `'sales.crm'`, `'sales.crm.dispositions'`
 */
declare function listAllSystems(model: OrganizationModel): Array<{
    path: string;
    system: SystemEntryWithTree;
}>;

declare const OrganizationModelSchema: z.ZodObject<{
    version: z.ZodDefault<z.ZodLiteral<1>>;
    snapshotHash: z.ZodOptional<z.ZodString>;
    domainMetadata: z.ZodPipe<z.ZodDefault<z.ZodObject<{
        branding: z.ZodOptional<z.ZodObject<{
            version: z.ZodDefault<z.ZodLiteral<1>>;
            lastModified: z.ZodString;
        }, z.core.$strip>>;
        identity: z.ZodOptional<z.ZodObject<{
            version: z.ZodDefault<z.ZodLiteral<1>>;
            lastModified: z.ZodString;
        }, z.core.$strip>>;
        clients: z.ZodOptional<z.ZodObject<{
            version: z.ZodDefault<z.ZodLiteral<1>>;
            lastModified: z.ZodString;
        }, z.core.$strip>>;
        customers: z.ZodOptional<z.ZodObject<{
            version: z.ZodDefault<z.ZodLiteral<1>>;
            lastModified: z.ZodString;
        }, z.core.$strip>>;
        offerings: z.ZodOptional<z.ZodObject<{
            version: z.ZodDefault<z.ZodLiteral<1>>;
            lastModified: z.ZodString;
        }, z.core.$strip>>;
        roles: z.ZodOptional<z.ZodObject<{
            version: z.ZodDefault<z.ZodLiteral<1>>;
            lastModified: z.ZodString;
        }, z.core.$strip>>;
        goals: z.ZodOptional<z.ZodObject<{
            version: z.ZodDefault<z.ZodLiteral<1>>;
            lastModified: z.ZodString;
        }, z.core.$strip>>;
        systems: z.ZodOptional<z.ZodObject<{
            version: z.ZodDefault<z.ZodLiteral<1>>;
            lastModified: z.ZodString;
        }, z.core.$strip>>;
        ontology: z.ZodOptional<z.ZodObject<{
            version: z.ZodDefault<z.ZodLiteral<1>>;
            lastModified: z.ZodString;
        }, z.core.$strip>>;
        resources: z.ZodOptional<z.ZodObject<{
            version: z.ZodDefault<z.ZodLiteral<1>>;
            lastModified: z.ZodString;
        }, z.core.$strip>>;
        topology: z.ZodOptional<z.ZodObject<{
            version: z.ZodDefault<z.ZodLiteral<1>>;
            lastModified: z.ZodString;
        }, z.core.$strip>>;
        actions: z.ZodOptional<z.ZodObject<{
            version: z.ZodDefault<z.ZodLiteral<1>>;
            lastModified: z.ZodString;
        }, z.core.$strip>>;
        entities: z.ZodOptional<z.ZodObject<{
            version: z.ZodDefault<z.ZodLiteral<1>>;
            lastModified: z.ZodString;
        }, z.core.$strip>>;
        policies: z.ZodOptional<z.ZodObject<{
            version: z.ZodDefault<z.ZodLiteral<1>>;
            lastModified: z.ZodString;
        }, z.core.$strip>>;
        knowledge: z.ZodOptional<z.ZodObject<{
            version: z.ZodDefault<z.ZodLiteral<1>>;
            lastModified: z.ZodString;
        }, z.core.$strip>>;
    }, z.core.$strip>>, z.ZodTransform<{
        branding: {
            version: 1;
            lastModified: string;
        };
        identity: {
            version: 1;
            lastModified: string;
        };
        clients: {
            version: 1;
            lastModified: string;
        };
        customers: {
            version: 1;
            lastModified: string;
        };
        offerings: {
            version: 1;
            lastModified: string;
        };
        roles: {
            version: 1;
            lastModified: string;
        };
        goals: {
            version: 1;
            lastModified: string;
        };
        systems: {
            version: 1;
            lastModified: string;
        };
        ontology: {
            version: 1;
            lastModified: string;
        };
        resources: {
            version: 1;
            lastModified: string;
        };
        topology: {
            version: 1;
            lastModified: string;
        };
        actions: {
            version: 1;
            lastModified: string;
        };
        entities: {
            version: 1;
            lastModified: string;
        };
        policies: {
            version: 1;
            lastModified: string;
        };
        knowledge: {
            version: 1;
            lastModified: string;
        };
    }, {
        branding?: {
            version: 1;
            lastModified: string;
        } | undefined;
        identity?: {
            version: 1;
            lastModified: string;
        } | undefined;
        clients?: {
            version: 1;
            lastModified: string;
        } | undefined;
        customers?: {
            version: 1;
            lastModified: string;
        } | undefined;
        offerings?: {
            version: 1;
            lastModified: string;
        } | undefined;
        roles?: {
            version: 1;
            lastModified: string;
        } | undefined;
        goals?: {
            version: 1;
            lastModified: string;
        } | undefined;
        systems?: {
            version: 1;
            lastModified: string;
        } | undefined;
        ontology?: {
            version: 1;
            lastModified: string;
        } | undefined;
        resources?: {
            version: 1;
            lastModified: string;
        } | undefined;
        topology?: {
            version: 1;
            lastModified: string;
        } | undefined;
        actions?: {
            version: 1;
            lastModified: string;
        } | undefined;
        entities?: {
            version: 1;
            lastModified: string;
        } | undefined;
        policies?: {
            version: 1;
            lastModified: string;
        } | undefined;
        knowledge?: {
            version: 1;
            lastModified: string;
        } | undefined;
    }>>;
    branding: z.ZodDefault<z.ZodObject<{
        organizationName: z.ZodString;
        productName: z.ZodString;
        shortName: z.ZodString;
        description: z.ZodOptional<z.ZodString>;
        logos: z.ZodDefault<z.ZodObject<{
            light: z.ZodOptional<z.ZodString>;
            dark: z.ZodOptional<z.ZodString>;
        }, z.core.$strip>>;
        voice: z.ZodOptional<z.ZodString>;
        tagline: z.ZodOptional<z.ZodString>;
        values: z.ZodOptional<z.ZodArray<z.ZodString>>;
        themePresetId: z.ZodOptional<z.ZodString>;
    }, z.core.$loose>>;
    navigation: z.ZodDefault<z.ZodObject<{
        sidebar: z.ZodDefault<z.ZodObject<{
            primary: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<SidebarNode, unknown, z.core.$ZodTypeInternals<SidebarNode, unknown>>>>;
            bottom: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<SidebarNode, unknown, z.core.$ZodTypeInternals<SidebarNode, unknown>>>>;
        }, z.core.$strip>>;
        topbar: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
            id: z.ZodString;
            label: z.ZodString;
            tooltip: z.ZodOptional<z.ZodString>;
            icon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
                message: "message";
                error: "error";
                agent: "agent";
                workflow: "workflow";
                "google-sheets": "google-sheets";
                dashboard: "dashboard";
                calendar: "calendar";
                sales: "sales";
                crm: "crm";
                "lead-gen": "lead-gen";
                projects: "projects";
                clients: "clients";
                operations: "operations";
                monitoring: "monitoring";
                knowledge: "knowledge";
                settings: "settings";
                admin: "admin";
                archive: "archive";
                business: "business";
                finance: "finance";
                platform: "platform";
                seo: "seo";
                playbook: "playbook";
                strategy: "strategy";
                reference: "reference";
                integration: "integration";
                database: "database";
                user: "user";
                team: "team";
                gmail: "gmail";
                attio: "attio";
                overview: "overview";
                "command-view": "command-view";
                "command-queue": "command-queue";
                pipeline: "pipeline";
                lists: "lists";
                resources: "resources";
                approve: "approve";
                reject: "reject";
                retry: "retry";
                edit: "edit";
                view: "view";
                launch: "launch";
                "message-plus": "message-plus";
                escalate: "escalate";
                promote: "promote";
                submit: "submit";
                email: "email";
                success: "success";
                warning: "warning";
                info: "info";
                pending: "pending";
                bolt: "bolt";
                building: "building";
                briefcase: "briefcase";
                apps: "apps";
                graph: "graph";
                shield: "shield";
                users: "users";
                "chart-bar": "chart-bar";
                search: "search";
            }>, z.ZodString]>>;
            order: z.ZodOptional<z.ZodNumber>;
            enabled: z.ZodDefault<z.ZodBoolean>;
            devOnly: z.ZodOptional<z.ZodBoolean>;
            requiresAdmin: z.ZodOptional<z.ZodBoolean>;
            targets: z.ZodOptional<z.ZodDefault<z.ZodObject<{
                systems: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
                entities: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
                resources: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
                actions: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
            }, z.core.$strip>>>;
        }, z.core.$strip>>>;
    }, z.core.$strip>>;
    identity: z.ZodDefault<z.ZodObject<{
        mission: z.ZodDefault<z.ZodString>;
        vision: z.ZodDefault<z.ZodString>;
        legalName: z.ZodDefault<z.ZodString>;
        entityType: z.ZodDefault<z.ZodString>;
        jurisdiction: z.ZodDefault<z.ZodString>;
        industryCategory: z.ZodDefault<z.ZodString>;
        geographicFocus: z.ZodDefault<z.ZodString>;
        timeZone: z.ZodDefault<z.ZodString>;
        businessHours: z.ZodDefault<z.ZodObject<{
            monday: z.ZodOptional<z.ZodObject<{
                open: z.ZodString;
                close: z.ZodString;
            }, z.core.$strip>>;
            tuesday: z.ZodOptional<z.ZodObject<{
                open: z.ZodString;
                close: z.ZodString;
            }, z.core.$strip>>;
            wednesday: z.ZodOptional<z.ZodObject<{
                open: z.ZodString;
                close: z.ZodString;
            }, z.core.$strip>>;
            thursday: z.ZodOptional<z.ZodObject<{
                open: z.ZodString;
                close: z.ZodString;
            }, z.core.$strip>>;
            friday: z.ZodOptional<z.ZodObject<{
                open: z.ZodString;
                close: z.ZodString;
            }, z.core.$strip>>;
            saturday: z.ZodOptional<z.ZodObject<{
                open: z.ZodString;
                close: z.ZodString;
            }, z.core.$strip>>;
            sunday: z.ZodOptional<z.ZodObject<{
                open: z.ZodString;
                close: z.ZodString;
            }, z.core.$strip>>;
        }, z.core.$strip>>;
        clientBrief: z.ZodDefault<z.ZodString>;
        organizationName: z.ZodOptional<z.ZodString>;
        productName: z.ZodOptional<z.ZodString>;
        shortName: z.ZodOptional<z.ZodString>;
        description: z.ZodOptional<z.ZodString>;
    }, z.core.$loose>>;
    clients: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
        id: z.ZodString;
        slug: z.ZodString;
        name: z.ZodString;
        status: z.ZodDefault<z.ZodEnum<{
            active: "active";
            onboarding: "onboarding";
            paused: "paused";
            completed: "completed";
            churned: "churned";
        }>>;
        source: z.ZodOptional<z.ZodString>;
        identity: z.ZodDefault<z.ZodObject<{
            organizationName: z.ZodOptional<z.ZodString>;
            shortName: z.ZodOptional<z.ZodString>;
            clientBrief: z.ZodDefault<z.ZodString>;
            geographicFocus: z.ZodDefault<z.ZodArray<z.ZodString>>;
            timeZone: z.ZodDefault<z.ZodString>;
        }, z.core.$loose>>;
        branding: z.ZodDefault<z.ZodObject<{
            voice: z.ZodOptional<z.ZodString>;
            tagline: z.ZodOptional<z.ZodString>;
            values: z.ZodDefault<z.ZodArray<z.ZodString>>;
        }, z.core.$loose>>;
        workspace: z.ZodDefault<z.ZodObject<{
            kind: z.ZodOptional<z.ZodEnum<{
                "external-project": "external-project";
                "internal-project": "internal-project";
                none: "none";
            }>>;
            owner: z.ZodOptional<z.ZodEnum<{
                platform: "platform";
                client: "client";
                developer: "developer";
            }>>;
            projectId: z.ZodOptional<z.ZodString>;
            workspacePath: z.ZodOptional<z.ZodString>;
        }, z.core.$loose>>;
        links: z.ZodDefault<z.ZodObject<{
            projectIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
            primaryCompanyId: z.ZodOptional<z.ZodString>;
            primaryContactId: z.ZodOptional<z.ZodString>;
            sourceDealId: z.ZodOptional<z.ZodString>;
        }, z.core.$strip>>;
        prompts: z.ZodDefault<z.ZodObject<{
            defaultContext: z.ZodDefault<z.ZodString>;
        }, z.core.$loose>>;
        config: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
        customValues: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
    }, z.core.$strict>>>>;
    customers: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
        id: z.ZodString;
        order: z.ZodNumber;
        name: z.ZodDefault<z.ZodString>;
        description: z.ZodDefault<z.ZodString>;
        jobsToBeDone: z.ZodDefault<z.ZodString>;
        pains: z.ZodDefault<z.ZodArray<z.ZodString>>;
        gains: z.ZodDefault<z.ZodArray<z.ZodString>>;
        firmographics: z.ZodDefault<z.ZodObject<{
            industry: z.ZodOptional<z.ZodString>;
            companySize: z.ZodOptional<z.ZodString>;
            region: z.ZodOptional<z.ZodString>;
        }, z.core.$strip>>;
        valueProp: z.ZodDefault<z.ZodString>;
    }, z.core.$strip>>>>;
    offerings: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
        id: z.ZodString;
        order: z.ZodNumber;
        name: z.ZodDefault<z.ZodString>;
        description: z.ZodDefault<z.ZodString>;
        pricingModel: z.ZodDefault<z.ZodEnum<{
            custom: "custom";
            "one-time": "one-time";
            subscription: "subscription";
            "usage-based": "usage-based";
        }>>;
        price: z.ZodDefault<z.ZodNumber>;
        currency: z.ZodDefault<z.ZodString>;
        targetSegmentIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
        deliveryFeatureId: z.ZodOptional<z.ZodString>;
    }, z.core.$strip>>>>;
    roles: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
        id: z.ZodString;
        order: z.ZodNumber;
        title: z.ZodString;
        responsibilities: z.ZodDefault<z.ZodArray<z.ZodString>>;
        reportsToId: z.ZodOptional<z.ZodString>;
        heldBy: z.ZodOptional<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
            kind: z.ZodLiteral<"human">;
            userId: z.ZodString;
        }, z.core.$strip>, z.ZodObject<{
            kind: z.ZodLiteral<"agent">;
            agentId: z.ZodString;
        }, z.core.$strip>, z.ZodObject<{
            kind: z.ZodLiteral<"team">;
            memberIds: z.ZodArray<z.ZodString>;
        }, z.core.$strip>], "kind">, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
            kind: z.ZodLiteral<"human">;
            userId: z.ZodString;
        }, z.core.$strip>, z.ZodObject<{
            kind: z.ZodLiteral<"agent">;
            agentId: z.ZodString;
        }, z.core.$strip>, z.ZodObject<{
            kind: z.ZodLiteral<"team">;
            memberIds: z.ZodArray<z.ZodString>;
        }, z.core.$strip>], "kind">>]>>;
        responsibleFor: z.ZodOptional<z.ZodArray<z.ZodString>>;
    }, z.core.$strip>>>>;
    goals: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
        id: z.ZodString;
        order: z.ZodNumber;
        description: z.ZodString;
        periodStart: z.ZodString;
        periodEnd: z.ZodString;
        keyResults: z.ZodDefault<z.ZodArray<z.ZodObject<{
            id: z.ZodString;
            description: z.ZodString;
            targetMetric: z.ZodString;
            currentValue: z.ZodDefault<z.ZodNumber>;
            targetValue: z.ZodOptional<z.ZodNumber>;
        }, z.core.$strip>>>;
    }, z.core.$strip>>>>;
    systems: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<SystemEntry, unknown, z.core.$ZodTypeInternals<SystemEntry, unknown>>>>>;
    ontology: z.ZodDefault<z.ZodDefault<z.ZodObject<{
        objectTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
            id: z.ZodString;
            label: z.ZodOptional<z.ZodString>;
            description: z.ZodOptional<z.ZodString>;
            ownerSystemId: z.ZodOptional<z.ZodString>;
            aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
            properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
            storage: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
        }, z.core.$loose>>>>;
        linkTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
            id: z.ZodString;
            label: z.ZodOptional<z.ZodString>;
            description: z.ZodOptional<z.ZodString>;
            ownerSystemId: z.ZodOptional<z.ZodString>;
            aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
            from: z.ZodString;
            to: z.ZodString;
            cardinality: z.ZodOptional<z.ZodString>;
            via: z.ZodOptional<z.ZodString>;
        }, z.core.$loose>>>>;
        actionTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
            id: z.ZodString;
            label: z.ZodOptional<z.ZodString>;
            description: z.ZodOptional<z.ZodString>;
            ownerSystemId: z.ZodOptional<z.ZodString>;
            aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
            actsOn: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
            input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
            effects: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
        }, z.core.$loose>>>>;
        catalogTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
            id: z.ZodString;
            label: z.ZodOptional<z.ZodString>;
            description: z.ZodOptional<z.ZodString>;
            ownerSystemId: z.ZodOptional<z.ZodString>;
            aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
            kind: z.ZodOptional<z.ZodString>;
            appliesTo: z.ZodOptional<z.ZodString>;
            entries: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
        }, z.core.$loose>>>>;
        eventTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
            id: z.ZodString;
            label: z.ZodOptional<z.ZodString>;
            description: z.ZodOptional<z.ZodString>;
            ownerSystemId: z.ZodOptional<z.ZodString>;
            aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
            payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
        }, z.core.$loose>>>>;
        interfaceTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
            id: z.ZodString;
            label: z.ZodOptional<z.ZodString>;
            description: z.ZodOptional<z.ZodString>;
            ownerSystemId: z.ZodOptional<z.ZodString>;
            aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
            properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
        }, z.core.$loose>>>>;
        valueTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
            id: z.ZodString;
            label: z.ZodOptional<z.ZodString>;
            description: z.ZodOptional<z.ZodString>;
            ownerSystemId: z.ZodOptional<z.ZodString>;
            aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
            primitive: z.ZodOptional<z.ZodString>;
        }, z.core.$loose>>>>;
        sharedProperties: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
            id: z.ZodString;
            label: z.ZodOptional<z.ZodString>;
            description: z.ZodOptional<z.ZodString>;
            ownerSystemId: z.ZodOptional<z.ZodString>;
            aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
            valueType: z.ZodOptional<z.ZodString>;
            searchable: z.ZodOptional<z.ZodBoolean>;
            pii: z.ZodOptional<z.ZodBoolean>;
        }, z.core.$loose>>>>;
        groups: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
            id: z.ZodString;
            label: z.ZodOptional<z.ZodString>;
            description: z.ZodOptional<z.ZodString>;
            ownerSystemId: z.ZodOptional<z.ZodString>;
            aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
            members: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
        }, z.core.$loose>>>>;
        endpoints: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
            id: z.ZodString;
            label: z.ZodOptional<z.ZodString>;
            description: z.ZodOptional<z.ZodString>;
            ownerSystemId: z.ZodOptional<z.ZodString>;
            aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
            route: z.ZodOptional<z.ZodString>;
        }, z.core.$loose>>>>;
    }, z.core.$strip>>>;
    resources: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
        id: z.ZodString;
        order: z.ZodDefault<z.ZodNumber>;
        systemPath: z.ZodString;
        title: z.ZodOptional<z.ZodString>;
        description: z.ZodOptional<z.ZodString>;
        ownerRoleId: z.ZodOptional<z.ZodString>;
        status: z.ZodEnum<{
            active: "active";
            deprecated: "deprecated";
            archived: "archived";
        }>;
        ontology: z.ZodOptional<z.ZodObject<{
            actions: z.ZodOptional<z.ZodArray<z.ZodString>>;
            primaryAction: z.ZodOptional<z.ZodString>;
            reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
            writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
            usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
            emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
            contract: z.ZodOptional<z.ZodObject<{
                input: z.ZodOptional<z.ZodString>;
                output: z.ZodOptional<z.ZodString>;
            }, z.core.$strip>>;
        }, z.core.$strip>>;
        codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
            path: z.ZodString;
            role: z.ZodEnum<{
                entrypoint: "entrypoint";
                handler: "handler";
                schema: "schema";
                test: "test";
                docs: "docs";
                config: "config";
            }>;
            symbol: z.ZodOptional<z.ZodString>;
            description: z.ZodOptional<z.ZodString>;
        }, z.core.$strip>>>;
        kind: z.ZodLiteral<"workflow">;
        emits: z.ZodOptional<z.ZodArray<z.ZodObject<{
            eventKey: z.ZodString;
            label: z.ZodString;
            payloadSchema: z.ZodOptional<z.ZodString>;
            lifecycle: z.ZodOptional<z.ZodEnum<{
                active: "active";
                deprecated: "deprecated";
                draft: "draft";
                beta: "beta";
                archived: "archived";
            }>>;
        }, z.core.$strip>>>;
    }, z.core.$strip>, z.ZodObject<{
        id: z.ZodString;
        order: z.ZodDefault<z.ZodNumber>;
        systemPath: z.ZodString;
        title: z.ZodOptional<z.ZodString>;
        description: z.ZodOptional<z.ZodString>;
        ownerRoleId: z.ZodOptional<z.ZodString>;
        status: z.ZodEnum<{
            active: "active";
            deprecated: "deprecated";
            archived: "archived";
        }>;
        ontology: z.ZodOptional<z.ZodObject<{
            actions: z.ZodOptional<z.ZodArray<z.ZodString>>;
            primaryAction: z.ZodOptional<z.ZodString>;
            reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
            writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
            usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
            emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
            contract: z.ZodOptional<z.ZodObject<{
                input: z.ZodOptional<z.ZodString>;
                output: z.ZodOptional<z.ZodString>;
            }, z.core.$strip>>;
        }, z.core.$strip>>;
        codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
            path: z.ZodString;
            role: z.ZodEnum<{
                entrypoint: "entrypoint";
                handler: "handler";
                schema: "schema";
                test: "test";
                docs: "docs";
                config: "config";
            }>;
            symbol: z.ZodOptional<z.ZodString>;
            description: z.ZodOptional<z.ZodString>;
        }, z.core.$strip>>>;
        kind: z.ZodLiteral<"agent">;
        agentKind: z.ZodEnum<{
            platform: "platform";
            orchestrator: "orchestrator";
            specialist: "specialist";
            utility: "utility";
        }>;
        actsAsRoleId: z.ZodOptional<z.ZodString>;
        sessionCapable: z.ZodBoolean;
        invocations: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
            kind: z.ZodLiteral<"slash-command">;
            command: z.ZodString;
            toolFactory: z.ZodOptional<z.ZodString>;
        }, z.core.$strip>, z.ZodObject<{
            kind: z.ZodLiteral<"mcp-tool">;
            server: z.ZodString;
            name: z.ZodString;
        }, z.core.$strip>, z.ZodObject<{
            kind: z.ZodLiteral<"api-endpoint">;
            method: z.ZodEnum<{
                GET: "GET";
                POST: "POST";
                PATCH: "PATCH";
                DELETE: "DELETE";
            }>;
            path: z.ZodString;
            requestSchema: z.ZodOptional<z.ZodString>;
            responseSchema: z.ZodOptional<z.ZodString>;
        }, z.core.$strip>, z.ZodObject<{
            kind: z.ZodLiteral<"script-execution">;
            resourceId: z.ZodString;
        }, z.core.$strip>], "kind">>>;
        emits: z.ZodOptional<z.ZodArray<z.ZodObject<{
            eventKey: z.ZodString;
            label: z.ZodString;
            payloadSchema: z.ZodOptional<z.ZodString>;
            lifecycle: z.ZodOptional<z.ZodEnum<{
                active: "active";
                deprecated: "deprecated";
                draft: "draft";
                beta: "beta";
                archived: "archived";
            }>>;
        }, z.core.$strip>>>;
    }, z.core.$strip>, z.ZodObject<{
        id: z.ZodString;
        order: z.ZodDefault<z.ZodNumber>;
        systemPath: z.ZodString;
        title: z.ZodOptional<z.ZodString>;
        description: z.ZodOptional<z.ZodString>;
        ownerRoleId: z.ZodOptional<z.ZodString>;
        status: z.ZodEnum<{
            active: "active";
            deprecated: "deprecated";
            archived: "archived";
        }>;
        ontology: z.ZodOptional<z.ZodObject<{
            actions: z.ZodOptional<z.ZodArray<z.ZodString>>;
            primaryAction: z.ZodOptional<z.ZodString>;
            reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
            writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
            usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
            emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
            contract: z.ZodOptional<z.ZodObject<{
                input: z.ZodOptional<z.ZodString>;
                output: z.ZodOptional<z.ZodString>;
            }, z.core.$strip>>;
        }, z.core.$strip>>;
        codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
            path: z.ZodString;
            role: z.ZodEnum<{
                entrypoint: "entrypoint";
                handler: "handler";
                schema: "schema";
                test: "test";
                docs: "docs";
                config: "config";
            }>;
            symbol: z.ZodOptional<z.ZodString>;
            description: z.ZodOptional<z.ZodString>;
        }, z.core.$strip>>>;
        kind: z.ZodLiteral<"integration">;
        provider: z.ZodString;
    }, z.core.$strip>, z.ZodObject<{
        id: z.ZodString;
        order: z.ZodDefault<z.ZodNumber>;
        systemPath: z.ZodString;
        title: z.ZodOptional<z.ZodString>;
        description: z.ZodOptional<z.ZodString>;
        ownerRoleId: z.ZodOptional<z.ZodString>;
        status: z.ZodEnum<{
            active: "active";
            deprecated: "deprecated";
            archived: "archived";
        }>;
        ontology: z.ZodOptional<z.ZodObject<{
            actions: z.ZodOptional<z.ZodArray<z.ZodString>>;
            primaryAction: z.ZodOptional<z.ZodString>;
            reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
            writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
            usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
            emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
            contract: z.ZodOptional<z.ZodObject<{
                input: z.ZodOptional<z.ZodString>;
                output: z.ZodOptional<z.ZodString>;
            }, z.core.$strip>>;
        }, z.core.$strip>>;
        codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
            path: z.ZodString;
            role: z.ZodEnum<{
                entrypoint: "entrypoint";
                handler: "handler";
                schema: "schema";
                test: "test";
                docs: "docs";
                config: "config";
            }>;
            symbol: z.ZodOptional<z.ZodString>;
            description: z.ZodOptional<z.ZodString>;
        }, z.core.$strip>>>;
        kind: z.ZodLiteral<"script">;
        language: z.ZodEnum<{
            shell: "shell";
            sql: "sql";
            typescript: "typescript";
            python: "python";
        }>;
        source: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
            file: z.ZodString;
        }, z.core.$strip>]>;
    }, z.core.$strip>], "kind">>>>;
    topology: z.ZodDefault<z.ZodDefault<z.ZodObject<{
        version: z.ZodDefault<z.ZodLiteral<1>>;
        relationships: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
            from: z.ZodDiscriminatedUnion<[z.ZodObject<{
                kind: z.ZodLiteral<"system">;
                id: z.ZodString;
            }, z.core.$strip>, z.ZodObject<{
                kind: z.ZodLiteral<"resource">;
                id: z.ZodString;
            }, z.core.$strip>, z.ZodObject<{
                kind: z.ZodLiteral<"ontology">;
                id: z.ZodString;
            }, z.core.$strip>, z.ZodObject<{
                kind: z.ZodLiteral<"policy">;
                id: z.ZodString;
            }, z.core.$strip>, z.ZodObject<{
                kind: z.ZodLiteral<"role">;
                id: z.ZodString;
            }, z.core.$strip>, z.ZodObject<{
                kind: z.ZodLiteral<"trigger">;
                id: z.ZodString;
            }, z.core.$strip>, z.ZodObject<{
                kind: z.ZodLiteral<"humanCheckpoint">;
                id: z.ZodString;
            }, z.core.$strip>, z.ZodObject<{
                kind: z.ZodLiteral<"externalResource">;
                id: z.ZodString;
            }, z.core.$strip>], "kind">;
            kind: z.ZodEnum<{
                triggers: "triggers";
                uses: "uses";
                approval: "approval";
            }>;
            to: z.ZodDiscriminatedUnion<[z.ZodObject<{
                kind: z.ZodLiteral<"system">;
                id: z.ZodString;
            }, z.core.$strip>, z.ZodObject<{
                kind: z.ZodLiteral<"resource">;
                id: z.ZodString;
            }, z.core.$strip>, z.ZodObject<{
                kind: z.ZodLiteral<"ontology">;
                id: z.ZodString;
            }, z.core.$strip>, z.ZodObject<{
                kind: z.ZodLiteral<"policy">;
                id: z.ZodString;
            }, z.core.$strip>, z.ZodObject<{
                kind: z.ZodLiteral<"role">;
                id: z.ZodString;
            }, z.core.$strip>, z.ZodObject<{
                kind: z.ZodLiteral<"trigger">;
                id: z.ZodString;
            }, z.core.$strip>, z.ZodObject<{
                kind: z.ZodLiteral<"humanCheckpoint">;
                id: z.ZodString;
            }, z.core.$strip>, z.ZodObject<{
                kind: z.ZodLiteral<"externalResource">;
                id: z.ZodString;
            }, z.core.$strip>], "kind">;
            systemPath: z.ZodOptional<z.ZodString>;
            required: z.ZodOptional<z.ZodBoolean>;
            metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
        }, z.core.$strip>>>;
    }, z.core.$strip>>>;
    actions: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
        id: z.ZodString;
        order: z.ZodNumber;
        label: z.ZodString;
        description: z.ZodOptional<z.ZodString>;
        scope: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"global">, z.ZodObject<{
            domain: z.ZodString;
        }, z.core.$strip>]>>;
        resourceId: z.ZodOptional<z.ZodString>;
        affects: z.ZodOptional<z.ZodArray<z.ZodString>>;
        invocations: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
            kind: z.ZodLiteral<"slash-command">;
            command: z.ZodString;
            toolFactory: z.ZodOptional<z.ZodString>;
        }, z.core.$strip>, z.ZodObject<{
            kind: z.ZodLiteral<"mcp-tool">;
            server: z.ZodString;
            name: z.ZodString;
        }, z.core.$strip>, z.ZodObject<{
            kind: z.ZodLiteral<"api-endpoint">;
            method: z.ZodEnum<{
                GET: "GET";
                POST: "POST";
                PATCH: "PATCH";
                DELETE: "DELETE";
            }>;
            path: z.ZodString;
            requestSchema: z.ZodOptional<z.ZodString>;
            responseSchema: z.ZodOptional<z.ZodString>;
        }, z.core.$strip>, z.ZodObject<{
            kind: z.ZodLiteral<"script-execution">;
            resourceId: z.ZodString;
        }, z.core.$strip>], "kind">>>;
        knowledge: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
        lifecycle: z.ZodDefault<z.ZodEnum<{
            active: "active";
            deprecated: "deprecated";
            draft: "draft";
            beta: "beta";
            archived: "archived";
        }>>;
    }, z.core.$strip>>>>;
    entities: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
        id: z.ZodString;
        order: z.ZodNumber;
        label: z.ZodString;
        description: z.ZodOptional<z.ZodString>;
        ownedBySystemId: z.ZodString;
        table: z.ZodOptional<z.ZodString>;
        rowSchema: z.ZodOptional<z.ZodString>;
        stateCatalogId: z.ZodOptional<z.ZodString>;
        links: z.ZodOptional<z.ZodArray<z.ZodObject<{
            toEntity: z.ZodString;
            kind: z.ZodEnum<{
                "belongs-to": "belongs-to";
                "has-many": "has-many";
                "has-one": "has-one";
                "many-to-many": "many-to-many";
            }>;
            via: z.ZodOptional<z.ZodString>;
            label: z.ZodOptional<z.ZodString>;
        }, z.core.$strip>>>;
    }, z.core.$strip>>>>;
    policies: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
        id: z.ZodString;
        order: z.ZodNumber;
        label: z.ZodString;
        description: z.ZodOptional<z.ZodString>;
        trigger: z.ZodDiscriminatedUnion<[z.ZodObject<{
            kind: z.ZodLiteral<"event">;
            eventId: z.ZodString;
        }, z.core.$strip>, z.ZodObject<{
            kind: z.ZodLiteral<"action-invocation">;
            actionId: z.ZodString;
        }, z.core.$strip>, z.ZodObject<{
            kind: z.ZodLiteral<"schedule">;
            cron: z.ZodString;
        }, z.core.$strip>, z.ZodObject<{
            kind: z.ZodLiteral<"manual">;
        }, z.core.$strip>], "kind">;
        predicate: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
            kind: z.ZodLiteral<"always">;
        }, z.core.$strip>, z.ZodObject<{
            kind: z.ZodLiteral<"expression">;
            expression: z.ZodString;
        }, z.core.$strip>, z.ZodObject<{
            kind: z.ZodLiteral<"threshold">;
            metric: z.ZodString;
            operator: z.ZodEnum<{
                lt: "lt";
                lte: "lte";
                eq: "eq";
                gte: "gte";
                gt: "gt";
            }>;
            value: z.ZodNumber;
        }, z.core.$strip>], "kind">>;
        actions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
            kind: z.ZodLiteral<"require-approval">;
            roleId: z.ZodOptional<z.ZodString>;
        }, z.core.$strip>, z.ZodObject<{
            kind: z.ZodLiteral<"invoke-action">;
            actionId: z.ZodString;
        }, z.core.$strip>, z.ZodObject<{
            kind: z.ZodLiteral<"notify-role">;
            roleId: z.ZodString;
        }, z.core.$strip>, z.ZodObject<{
            kind: z.ZodLiteral<"block">;
        }, z.core.$strip>], "kind">>;
        appliesTo: z.ZodDefault<z.ZodObject<{
            systemIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
            actionIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
            resourceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
            roleIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
        }, z.core.$strip>>;
        lifecycle: z.ZodDefault<z.ZodEnum<{
            active: "active";
            deprecated: "deprecated";
            draft: "draft";
            beta: "beta";
            archived: "archived";
        }>>;
    }, z.core.$strip>>>>;
    knowledge: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
        id: z.ZodString;
        kind: z.ZodEnum<{
            playbook: "playbook";
            strategy: "strategy";
            reference: "reference";
        }>;
        title: z.ZodString;
        summary: z.ZodString;
        icon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
            message: "message";
            error: "error";
            agent: "agent";
            workflow: "workflow";
            "google-sheets": "google-sheets";
            dashboard: "dashboard";
            calendar: "calendar";
            sales: "sales";
            crm: "crm";
            "lead-gen": "lead-gen";
            projects: "projects";
            clients: "clients";
            operations: "operations";
            monitoring: "monitoring";
            knowledge: "knowledge";
            settings: "settings";
            admin: "admin";
            archive: "archive";
            business: "business";
            finance: "finance";
            platform: "platform";
            seo: "seo";
            playbook: "playbook";
            strategy: "strategy";
            reference: "reference";
            integration: "integration";
            database: "database";
            user: "user";
            team: "team";
            gmail: "gmail";
            attio: "attio";
            overview: "overview";
            "command-view": "command-view";
            "command-queue": "command-queue";
            pipeline: "pipeline";
            lists: "lists";
            resources: "resources";
            approve: "approve";
            reject: "reject";
            retry: "retry";
            edit: "edit";
            view: "view";
            launch: "launch";
            "message-plus": "message-plus";
            escalate: "escalate";
            promote: "promote";
            submit: "submit";
            email: "email";
            success: "success";
            warning: "warning";
            info: "info";
            pending: "pending";
            bolt: "bolt";
            building: "building";
            briefcase: "briefcase";
            apps: "apps";
            graph: "graph";
            shield: "shield";
            users: "users";
            "chart-bar": "chart-bar";
            search: "search";
        }>, z.ZodString]>>;
        externalUrl: z.ZodOptional<z.ZodString>;
        sourceFilePath: z.ZodOptional<z.ZodString>;
        body: z.ZodString;
        links: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodUnion<readonly [z.ZodObject<{
            target: z.ZodObject<{
                kind: z.ZodEnum<{
                    knowledge: "knowledge";
                    system: "system";
                    resource: "resource";
                    action: "action";
                    ontology: "ontology";
                    role: "role";
                    client: "client";
                    stage: "stage";
                    goal: "goal";
                    "customer-segment": "customer-segment";
                    offering: "offering";
                }>;
                id: z.ZodString;
            }, z.core.$strip>;
        }, z.core.$strip>, z.ZodObject<{
            nodeId: z.ZodUnion<readonly [z.ZodString, z.ZodTemplateLiteral<`ontology:${string}`>]>;
        }, z.core.$strip>]>, z.ZodTransform<{
            target: {
                kind: "knowledge" | "system" | "resource" | "action" | "ontology" | "role" | "client" | "stage" | "goal" | "customer-segment" | "offering";
                id: string;
            };
            nodeId: string;
        }, {
            nodeId: string;
        } | {
            target: {
                kind: "knowledge" | "system" | "resource" | "action" | "ontology" | "role" | "client" | "stage" | "goal" | "customer-segment" | "offering";
                id: string;
            };
        }>>>>;
        ownerIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
        updatedAt: z.ZodString;
    }, z.core.$strip>>>>;
}, z.core.$strip>;

type OrganizationModel = z.infer<typeof OrganizationModelSchema>;
type OrganizationModelSystemEntry = z.infer<typeof SystemEntrySchema>;
type OrganizationModelActionInvocation = z.infer<typeof ActionInvocationSchema>;

/**
 * Command View Types
 *
 * Unified type definitions for the Command View graph visualization.
 * These types are used by both backend serialization and frontend rendering.
 *
 * Command View shows the resource graph: agents, workflows, triggers, integrations,
 * external resources, and human checkpoints with their relationships.
 */

/**
 * Relationship types between resources
 *
 * - triggers: Resource initiates/starts another resource (orange)
 * - uses: Resource uses an integration (teal)
 * - approval: Resource requires human approval (yellow)
 */
type RelationshipType = 'triggers' | 'uses' | 'approval';

type OrganizationGraphNodeKind = 'organization' | 'system' | 'client' | 'role' | 'action' | 'entity' | 'event' | 'policy' | 'stage' | 'resource' | 'knowledge' | 'customer-segment' | 'offering' | 'goal' | 'surface' | 'navigation-group' | 'ontology';
type OrganizationGraphEdgeKind = 'contains' | 'references' | 'maps_to' | 'uses' | 'governs' | 'links' | 'affects' | 'emits' | 'originates_from' | 'triggers' | 'approval' | 'applies_to' | 'effects' | 'actions' | 'reads' | 'writes' | 'uses_catalog';

interface OrganizationGraphNode {
    id: string;
    kind: OrganizationGraphNodeKind;
    label: string;
    sourceId?: string;
    description?: string;
    icon?: OrganizationModelIconToken;
    enabled?: boolean;
    ontologyKind?: string;
    resourceType?: 'workflow' | 'agent' | 'trigger' | 'integration' | 'external' | 'human_checkpoint' | 'script';
}
interface OrganizationGraphEdge {
    id: string;
    kind: OrganizationGraphEdgeKind;
    sourceId: string;
    targetId: string;
    label?: string;
    relationshipType?: RelationshipType;
}
interface OrganizationGraph {
    version: 1;
    organizationModelVersion: OrganizationModel['version'];
    nodes: OrganizationGraphNode[];
    edges: OrganizationGraphEdge[];
}

/**
 * Returns all knowledge nodes whose `governs` edges point to the given
 * systemId (graph node ID: `system:<systemId>`).
 *
 * @param graph   - The built OrganizationGraph.
 * @param systemId - The dotted system id (e.g. `sales.crm`).
 */
declare function bySystem(graph: OrganizationGraph, systemId: string, knowledgeNodes: OrgKnowledgeNode[]): OrgKnowledgeNode[];
/**
 * Returns all knowledge nodes whose `kind` matches the given kind.
 *
 * @param graph          - The built OrganizationGraph (unused structurally; kept for API symmetry).
 * @param kind           - The knowledge kind (`'playbook' | 'strategy' | 'reference'`).
 * @param knowledgeNodes - Flat array of OrgKnowledgeNode from the OrganizationModel.
 */
declare function byKind(_graph: OrganizationGraph, kind: OrgKnowledgeKind, knowledgeNodes: OrgKnowledgeNode[]): OrgKnowledgeNode[];
/**
 * Returns all knowledge nodes where `ownerIds` includes the given `ownerId`.
 *
 * @param _graph         - The built OrganizationGraph (unused; kept for API symmetry).
 * @param ownerId        - The owner id string (matches values in `node.ownerIds`).
 * @param knowledgeNodes - Flat array of OrgKnowledgeNode from the OrganizationModel.
 */
declare function byOwner(_graph: OrganizationGraph, ownerId: string, knowledgeNodes: OrgKnowledgeNode[]): OrgKnowledgeNode[];
/**
 * Returns the IDs of the graph nodes that the given knowledge node governs
 * (outgoing `governs` edges from the knowledge graph node).
 *
 * The graph node ID for a knowledge OM node with id `X` is `knowledge:X`.
 *
 * @param graph    - The built OrganizationGraph.
 * @param nodeId   - The OM knowledge node id (e.g. `knowledge.outreach-playbook`).
 *                   Also accepts the graph node ID format (`knowledge:knowledge.outreach-playbook`).
 * @returns Array of target graph node IDs (e.g. `['system:sales.crm', ...]`).
 */
declare function governs(graph: OrganizationGraph, nodeId: string): string[];
/**
 * Returns the IDs of the knowledge graph nodes that govern the given node
 * (incoming `governs` edges pointing to `nodeId`).
 *
 * @param graph   - The built OrganizationGraph.
 * @param nodeId  - The target graph node ID (e.g. `system:sales.crm`) or a
 *                  bare system id (e.g. `sales.crm` â€” will be prefixed with `system:`).
 * @returns Array of source graph node IDs (e.g. `['knowledge:knowledge.outreach-playbook', ...]`).
 */
declare function governedBy(graph: OrganizationGraph, nodeId: string): string[];
/**
 * Returns all systems flattened from the recursive OM tree via `listAllSystems`.
 *
 * Each entry is `{ path, system }` — the same shape produced by `listAllSystems`.
 *
 * @param model - The resolved OrganizationModel.
 */
declare function listAllSystemsFlat(model: OrganizationModel): ReturnType<typeof listAllSystems>;
/**
 * Returns every resource from the model as a flat array, sorted by id.
 *
 * @param model - The resolved OrganizationModel.
 */
declare function listAllResources(model: OrganizationModel): NonNullable<OrganizationModel['resources']>[string][];
/**
 * Returns every role from the model as a flat array, sorted by id.
 *
 * @param model - The resolved OrganizationModel.
 */
declare function listAllRoles(model: OrganizationModel): NonNullable<OrganizationModel['roles']>[string][];
/** The recognized mount axes for Knowledge Map paths. */
type KnowledgeMount = 'by-system' | 'by-ontology' | 'by-kind' | 'by-owner' | 'graph' | 'node' | 'all-systems' | 'all-resources' | 'all-roles' | 'by-domain' | 'by-item';
/**
 * The result of parsing a Knowledge Map path string.
 *
 * Shape: `{ mount: KnowledgeMount, args: string[] }`
 *
 * Per-mount arg arrays:
 * - `by-system`:    `[systemId]`      (e.g. `['sales.crm']`)
 * - `by-ontology`:  `[ontologyId]`    (e.g. `['sales.crm:object/deal']`)
 * - `by-kind`:      `[kind]`          (e.g. `['playbook']`)
 * - `by-owner`:     `[ownerId]`       (e.g. `['role.ops-lead']`)
 * - `graph`:        `[nodeId, verb]`  where verb is `'governs'` or `'governed-by'`
 * - `node`:         `[nodeId]`        (single node lookup, no sub-path)
 * - `all-systems`:  `[]`              (no args — returns all systems flattened)
 * - `all-resources`:`[]`              (no args — returns all resources)
 * - `all-roles`:    `[]`              (no args — returns all roles)
 * - `by-domain`:    `[domain]`        (e.g. `['clients']`) — enumerate all items in domain
 * - `by-item`:      `[domain, itemId]` (e.g. `['clients', '<uuid>']`) — single domain-item
 */
interface ParsedKnowledgePath {
    mount: KnowledgeMount;
    args: string[];
}
/**
 * Parses a Knowledge Map path string into a `{ mount, args }` descriptor.
 *
 * Supported path patterns:
 *   `/by-system/<systemId>`           -> `{ mount: ‘by-system’,    args: [‘<systemId>’] }`
 *   `/by-ontology/<ontologyId>`       -> `{ mount: ‘by-ontology’,  args: [‘<ontologyId>’] }`
 *   `/by-kind/<kind>`                 -> `{ mount: ‘by-kind’,      args: [‘<kind>’] }`
 *   `/by-owner/<ownerId>`             -> `{ mount: ‘by-owner’,     args: [‘<ownerId>’] }`
 *   `/graph/<nodeId>/governs`         -> `{ mount: ‘graph’,        args: [‘<nodeId>’, ‘governs’] }`
 *   `/graph/<nodeId>/governed-by`     -> `{ mount: ‘graph’,        args: [‘<nodeId>’, ‘governed-by’] }`
 *   `/<nodeId>`                       -> `{ mount: ‘node’,         args: [‘<nodeId>’] }`
 *   `/all-systems`                    -> `{ mount: ‘all-systems’,  args: [] }`
 *   `/all-resources`                  -> `{ mount: ‘all-resources’,args: [] }`
 *   `/all-roles`                      -> `{ mount: ‘all-roles’,    args: [] }`
 *   `/by-domain/<domain>`             -> `{ mount: ‘by-domain’,    args: [‘<domain>’] }`
 *   `/by-item/<domain>/<itemId>`      -> `{ mount: ‘by-item’,      args: [‘<domain>’, ‘<itemId>’] }`
 *
 * The path MUST start with `/`.  Trailing slashes are stripped before parsing.
 *
 * @throws {Error} If the path is empty, missing a leading slash, or does not
 *   match any supported mount pattern.
 */
declare function parsePath(pathString: string): ParsedKnowledgePath;
/**
 * The kind of OM node that produced a search hit.
 *
 * Maps to the surface being searched:
 * - `system`    — recursive systems tree (model.systems)
 * - `resource`  — model.resources (workflows, agents, integrations, scripts)
 * - `knowledge` — model.knowledge (playbooks, strategies, references)
 * - `ontology`  — system.ontology and model.ontology (objects, actions, events, catalogs, links, ...)
 * - `role`      — model.roles
 * - `policy`    — model.policies
 */
type OmSearchHitKind = 'system' | 'resource' | 'knowledge' | 'ontology' | 'role' | 'policy';
interface OmSearchHit {
    /** Surface that produced the hit. */
    kind: OmSearchHitKind;
    /** Canonical id (system path, resource id, knowledge id, ontology id, role id, policy id). */
    id: string;
    /** Display title (label/title/summary fallback). */
    title: string;
    /** One-line description or summary (may be empty). */
    summary: string;
    /** Ranking score; higher is better. */
    score: number;
    /** Optional sub-kind for ontology / resource (`object`, `action`, `event`, `workflow`, ...). */
    subKind?: string;
}

/**
 * Renders a list of `OrgKnowledgeNode` results as a human-friendly text table.
 *
 * Output format (one row per node):
 *   `<kind>  <id>  <title>  â€”  <summary (truncated to 80 chars)>`
 *
 * Returns `"(no results)"` when the array is empty.
 */
declare function formatText(results: OrgKnowledgeNode[]): string;
/**
 * Wrapped JSON envelope for machine-readable output.
 *
 * Shape: `{ path, mount, args, results }`
 *
 * - `path`    â€” the original path string passed to `parsePath`
 * - `mount`   â€” the resolved mount axis
 * - `args`    â€” the parsed arguments array
 * - `results` â€” the query results (array of `OrgKnowledgeNode` or string IDs)
 */
interface KnowledgeJsonEnvelope {
    path: string;
    mount: KnowledgeMount;
    args: string[];
    results: OrgKnowledgeNode[] | string[];
}
/**
 * Formats query results as a wrapped JSON envelope string.
 *
 * The envelope shape is `{ path, mount, args, results }`.  This is intentionally
 * NOT flat `{ results }` â€” consumers (agent skills, jq pipelines) need the
 * mount + args to know how to interpret the results array.
 *
 * @param input.path    - The original path string (e.g. `"/by-system/sales.crm"`).
 * @param input.mount   - The resolved mount axis.
 * @param input.args    - The parsed argument array.
 * @param input.results - The query results.
 */
declare function formatJson(input: {
    path: string;
    parsed: ParsedKnowledgePath;
    results: OrgKnowledgeNode[] | string[];
}): string;
/**
 * Renders results as newline-separated IDs for piping.
 *
 * - For `OrgKnowledgeNode[]` results: emits `node.id` per line.
 * - For `string[]` results (governs / governedBy): emits each string per line.
 *
 * Returns an empty string when the array is empty (suitable for `wc -l` piping).
 */
declare function formatIdsOnly(results: OrgKnowledgeNode[] | string[] | OmSearchHit[]): string;

declare const OM_SEARCH_HIT_KINDS: OmSearchHitKind[];
declare function parseKnowledgeSearchLimit(raw: string | undefined, commandName?: string): number;
declare function parseKnowledgeSearchKinds(raw: string | undefined, commandName?: string): OmSearchHitKind[] | undefined;
declare function formatKnowledgeSystemsList(entries: ReturnType<typeof listAllSystemsFlat>): string;
declare function formatKnowledgeResourcesList(resources: ReturnType<typeof listAllResources>): string;
declare function formatKnowledgeRolesList(roles: ReturnType<typeof listAllRoles>): string;
interface KnowledgeInvocationSource {
    kind: 'action' | 'agent-resource';
    id: string;
    label: string;
    targetNodeId: string;
    invocations: OrganizationModelActionInvocation[];
}
interface KnowledgeInvocationNeighborsResult {
    id: string;
    title: string;
    invocationSources: KnowledgeInvocationSource[];
}
declare function normalizeKnowledgeNodeId(id: string): string;
declare function formatKnowledgeInvocationLabel(invocation: OrganizationModelActionInvocation): string;
declare function resolveKnowledgeInvocationNeighbors(model: OrganizationModel, id: string): KnowledgeInvocationNeighborsResult | undefined;
declare function formatKnowledgeInvocationNeighbors(result: KnowledgeInvocationNeighborsResult): string;

export { OM_SEARCH_HIT_KINDS, byKind, byOwner, bySystem, formatIdsOnly, formatJson, formatKnowledgeInvocationLabel, formatKnowledgeInvocationNeighbors, formatKnowledgeResourcesList, formatKnowledgeRolesList, formatKnowledgeSystemsList, formatText, governedBy, governs, normalizeKnowledgeNodeId, parseKnowledgeSearchKinds, parseKnowledgeSearchLimit, parsePath, resolveKnowledgeInvocationNeighbors };
export type { KnowledgeInvocationNeighborsResult, KnowledgeInvocationSource, KnowledgeJsonEnvelope, KnowledgeMount, OmSearchHitKind, ParsedKnowledgePath };
