/** * SchemaVersion represents the version of the schema used in the authorization model. * Currently, OpenFGA supports schema versions 1.1, and 1.2, 1.0 has been deprecated and is no longer supported. */ export declare enum SchemaVersion { V1_0 = "1.0", V1_1 = "1.1", V1_2 = "1.2" } /** * isSchemaVersionSupported checks if the provided schema version is supported by OpenFGA. * @param {SchemaVersion} version - The schema version to check. * @return {boolean} - Returns true if the schema version is supported, false otherwise. */ export declare function isSchemaVersionSupported(version: SchemaVersion): boolean; /** * checkSchemaVersionSupportsModules checks if the provided schema version supports modules. * @param {SchemaVersion} version - The schema version to check. * @returns {boolean} - Returns true if the schema version supports modules, false otherwise. */ export declare function checkSchemaVersionSupportsModules(version: SchemaVersion): boolean; /** * getSchemaVersionFromString converts a string to a SchemaVersion enum value, or throws an error if the string is not a valid schema version. * @param {string} version - The string representation of the schema version. * @returns {SchemaVersion} - The corresponding SchemaVersion enum value. * @throws {Error} - Throws an error if the provided string does not correspond to a valid schema version. */ export declare function getSchemaVersionFromString(version: string): SchemaVersion;