import { AuthenticationRequest, AuthenticationBaseStrategy, AuthenticationResult, AuthenticationParams } from '@feathersjs/authentication'; import { Params } from '@feathersjs/feathers'; export interface OAuthProfile { id?: string | number; [key: string]: any; } export declare class OAuthStrategy extends AuthenticationBaseStrategy { get configuration(): any; get entityId(): string; getEntityQuery(profile: OAuthProfile, _params: Params): Promise<{ [x: string]: any; }>; getEntityData(profile: OAuthProfile, _existingEntity: any, _params: Params): Promise<{ [x: string]: any; }>; getProfile(data: AuthenticationRequest, _params: Params): Promise; getCurrentEntity(params: Params): Promise; getAllowedOrigin(params?: Params): Promise; getRedirect(data: AuthenticationResult | Error, params?: AuthenticationParams): Promise; findEntity(profile: OAuthProfile, params: Params): Promise; createEntity(profile: OAuthProfile, params: Params): Promise; updateEntity(entity: any, profile: OAuthProfile, params: Params): Promise; getEntity(result: any, params: Params): Promise; authenticate(authentication: AuthenticationRequest, originalParams: AuthenticationParams): Promise<{ [x: string]: any; authentication: { strategy: string; }; }>; }