/**
 * This file is part of the NocoBase (R) project.
 * Copyright (c) 2020-2024 NocoBase Co., Ltd.
 * Authors: NocoBase Team.
 *
 * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
 * For more information, please refer to: https://www.nocobase.com/agreement.
 */
import type { Instruction } from './Instruction';
/** The slice of the workflow client plugin the canvas card needs — the
 *  `instructions` registry shared by v1 `PluginWorkflowClient` and v2
 *  `PluginWorkflowClientV2`. */
export type WorkflowInstructionPlugin = {
    instructions: {
        get(type: string): Instruction | undefined;
    };
};
/** Resolve the current runtime's workflow client plugin via the neutral
 *  `'workflow'` alias — v1's or v2's, whichever this runtime loaded. */
export declare function useWorkflowPlugin(): WorkflowInstructionPlugin | undefined;
/** Resolve a node type's instruction in a runtime-neutral way. Uses the shared
 *  `instructions` registry (present on both plugins), not v2-only `getInstruction`. */
export declare function useInstruction(type?: string): Instruction | undefined;
