n8n
Version:
n8n Workflow Automation Tool
14 lines (13 loc) • 742 B
TypeScript
import type { User } from '@n8n/db';
import type { Scope } from '@n8n/permissions';
import type { WorkflowFinderService } from '../../../workflows/workflow-finder.service';
type SdkReferenceHintOptions = {
afterReference?: string;
};
export declare function getSdkReferenceHint(error: unknown, options?: SdkReferenceHintOptions): string | undefined;
export type FoundWorkflow = NonNullable<Awaited<ReturnType<WorkflowFinderService['findWorkflowForUser']>>>;
export type GetMcpWorkflowOptions = {
includeActiveVersion?: boolean;
};
export declare function getMcpWorkflow(workflowId: string, user: User, scopes: Scope[], workflowFinderService: WorkflowFinderService, options?: GetMcpWorkflowOptions): Promise<FoundWorkflow>;
export {};