import { JSONValue } from '../system'; export declare type Id = string; export declare type IdMap = { [key: string]: Id; }; export interface AreaAccess { id: Id; name: string; owner: Id; permissions: number; } export interface Layer { id: Id; name: string; owner: Id; } export interface AccessTokens { access: AreaAccess; tokens: { space: Layer; token: string; }[]; } export interface Obj { [_: string]: JSONValue; id: Id; name: string; created: number; user: Id; } export declare function newId(): Id; export declare type RequestBody = ArrayBuffer | string; export interface RequestOptions { request: 'json' | 'raw'; response: 'json' | 'raw'; } export interface Request { method: 'GET' | 'POST' | 'PUT' | 'DELETE'; url: string; headers?: { [_: string]: string; }; body?: RequestBody; } export interface Response { status: number; body?: ArrayBuffer; headers: { [_: string]: string; }; } export declare function request(r: Request): Promise; export declare function isId(id: string): boolean; //# sourceMappingURL=index.d.ts.map