/** * Retrieves all related compositions from local storage by relation name. * * **Process Flow (Complex Logic)**: * 1. Converts relation string to type concept (e.g., "the_email" → type concept) * 2. Finds all connections from source concept with that relation type * 3. For each connection, retrieves the target composition * 4. Returns array of all related compositions * * @param id - The source concept ID to get relations from * @param relation - The relation name (e.g., "the_email", "the_address") * @param userId - User ID for permissions * @returns Array of composition objects representing related entities * @throws Error if relation lookup or composition retrieval fails * * @example * // Get all email addresses related to a person * const emails = await GetRelationLocal(personId, "the_email", userId); * // Returns: [emailComposition1, emailComposition2, ...] */ export declare function GetRelationLocal(id: number, relation: string, userId: number): Promise;