UNPKG

casbin

Version:

An authorization library that supports access control models like ACL, RBAC, ABAC in Node.JS

9 lines (8 loc) 411 B
/// <reference types="node" /> export interface FileSystem { readFileSync(path: string, encoding?: string): Buffer | string; writeFileSync(path: string, text: string, encoding?: string): void; } export declare const setDefaultFileSystem: (fs?: FileSystem) => void; export declare const getDefaultFileSystem: () => FileSystem | undefined; export declare const mustGetDefaultFileSystem: () => FileSystem;