import { DirectoryPath, DistinctivePath } from '../path'; import { Potency, Resource } from "../ucan/index"; export declare type Permissions = { app?: AppInfo; fs?: FileSystemPermissions; platform?: PlatformPermissions; raw?: RawPermissions; }; export declare type AppInfo = { name: string; creator: string; }; export declare type FileSystemPermissions = { private?: Array; public?: Array; }; export declare type PlatformPermissions = { apps: '*' | Array; }; export declare type RawPermissions = Array; export declare type RawPermission = { exp: number; rsc: Resource; ptc: Potency; }; /** * Path for `AppInfo`. */ export declare function appDataPath(app: AppInfo): DirectoryPath; /** * Lists the filesystems paths for a set of `Permissions`. * This'll return a list of `DistinctivePath`s. */ export declare function paths(permissions: Permissions): DistinctivePath[];