export declare function fixup(buf: string): string;
export declare function generateChallenge(val: string): Promise<string>;
export declare function processError(text: string, invalidErrorCb: () => void): any;
export declare function processTokenResponse(data: {
    refresh_token?: string;
    access_token: string;
}, storeRefreshTokenCb: (str: string) => void): string;
