import { RequestOptions } from './potion'; export declare type RouteType = (params?: any, options?: RequestOptions) => Promise; export declare function route(path: string, {method}?: RequestOptions): RouteType; /** * Use the Route object methods to register other REST methods on a resource. * * @example * class User extends Item { * static readSiblings = Route.GET('/siblings'); * createSibling = Route.POST('/sibling'); * } */ export declare const Route: { GET(uri: string): RouteType; DELETE(uri: string): RouteType; POST(uri: string): RouteType; PATCH(uri: string): RouteType; PUT(uri: string): RouteType; };