import { RelationName, Id, Type, CidString, LinkDefinition as Definition, RelationKey, Index } from '../interfaces'; import { Entities } from '../schema'; import { Namespace } from '../options'; export interface Action { type: string; definitions: Map; } export interface Creator { (...definitions: InputDefinition[]): Action; } declare type DefinitionTuple = [Type, Id, RelationName | RelationKey, Id, [Index?, Index?]]; declare type InputDefinition = Definition | DefinitionTuple; export declare const makeLink: (entities: Entities, namespace: Namespace) => { type: string; creator: (...definitions: InputDefinition[]) => Action; }; export {};