firebase-bolt
Version:
Firebase Bolt Security and Modeling Language Compiler
25 lines (24 loc) • 771 B
TypeScript
export declare var RULES_LOCATION: string;
export declare var TIMESTAMP: {
'.sv': string;
};
export declare type RequestOptions = {
method: string;
print?: string;
};
export declare class Client {
private appName;
private authToken?;
uid?: string | undefined;
private debug;
constructor(appName: string, authToken?: string | undefined, uid?: string | undefined);
setDebug(debug?: boolean): this;
get(location: string): Promise<string>;
put(location: string, content: any): Promise<string>;
request(opt: RequestOptions, path: string, content?: any): Promise<any>;
}
export declare function generateUidAuthToken(secret: string, opts: any): {
uid: any;
token: any;
};
export declare function generatePushID(): string;