import type { PromotionBindingConsumer, PromotionBindingProject } from '@n8n/api-types'; import type { VariableRequirementsExtractor } from '../../modules/n8n-packages/entities/variable/variable-requirements.extractor'; import type { InventoryCredential, InventoryVariable, InventoryWorkflow, PackageDirectoryInventory } from '../../modules/n8n-packages/io/directory/package-directory-inventory-reader'; export interface CredentialReference { sourceId: string | null; name: string; expectedTypes: string[]; file: InventoryCredential | undefined; workflows: InventoryWorkflow[]; } export interface VariableReference { name: string; file: InventoryVariable | undefined; workflows: InventoryWorkflow[]; } export type ProjectLookup = (id: string) => PromotionBindingProject; export declare function collectCredentialReferences(inventory: PackageDirectoryInventory): CredentialReference[]; export declare function collectVariableReferences(inventory: PackageDirectoryInventory, extractor: VariableRequirementsExtractor): VariableReference[]; export declare function consumersOf(workflows: InventoryWorkflow[], projectOf: ProjectLookup): PromotionBindingConsumer[]; export declare function workflowRefs(workflows: InventoryWorkflow[]): Array<{ id: string; name: string; }>; export declare function referenceFiles(workflows: InventoryWorkflow[]): string[]; export declare function compare(a: string, b: string): number;