import { AuthorizationModel, TypeDefinition, Userset } from "@openfga/sdk"; /** * getModuleForObjectTypeRelation - returns the module for the given object type and relation in that type. * @param typeDef - A TypeDefinition object which contains metadata about the type. * @param relation - A string representing the relation whose module is to be retrieved. * @return string - A string representing the module for the given object type and relation. * @error error - An error if the relation does not exist. */ export declare function getModuleForObjectTypeRelation(typeDef: TypeDefinition, relation: string): string | undefined; /** * isRelationAssignable - returns true if the relation is assignable, as in the relation definition has a key "this" or any of its children have a key "this". * @param relDef - A Userset object representing a relation definition. * @return boolean - A boolean representing whether the relation definition has a key "this". */ export declare function isRelationAssignable(relDef: Userset): boolean; /** * isModelModular - returns true if the model is modular. * A model is modular if it has schema version 1.2 and has at least one relation or object that has a module defined in its metadata. * @param model - An AuthorizationModel object. * @return boolean - A boolean representing whether the model is modular. * @throws error - An error if the model's schema version is not recognized. */ export declare function isModelModular(model: AuthorizationModel): boolean;