///
declare module fb {
class MockBase {
pendingRequests: {
[str: string]: ng.IDeferred;
};
q: ng.IQService;
constructor(q: ng.IQService);
createRequest(identifier: string): ng.IPromise;
getPendingRequests(): string[];
resolve(identifier: any, returnValue: any): void;
reject(identifier: any, returnValue: any): void;
requestIdentifier(type: fb.RequestType, str: string): string;
}
enum RequestType {
NONE = 0,
GET = 1,
QUERY = 2,
ADD = 3,
SAVE = 4,
REMOVE = 5,
POST = 6,
}
}