import { CloudCodeResponse } from './CloudCodeResponse'; export declare class AuthResponse { readonly authorized: boolean; readonly response: CloudCodeResponse; readonly context: any; /** * Response to authorization attempt. * @param authorized * @param result of authorization attempt as context or error response */ constructor(authorized: boolean, result: CloudCodeResponse | any); } export declare class AccessControl { authorized(context: any): AuthResponse; unauthorized(response?: { body?: string | any; status?: number; }): AuthResponse; }