import { BRC } from "../types/RuntimeCxt"; import { EntityDict } from "../oak-app-domain"; import { NativeEnv, WebEnv, WechatMpEnv } from "oak-domain/lib/types"; export declare function loginByOauth(params: { code: string; state: string; env: WebEnv | WechatMpEnv | NativeEnv; }, context: BRC): Promise; export declare function getOAuthClientInfo(params: { client_id: string; currentUserId?: string; }, context: BRC): Promise<{ data: Partial; alreadyAuth: boolean; }>; export declare function createOAuthState(params: { providerId: string; userId?: string; type: 'login' | 'bind'; }, context: BRC): Promise; export declare function authorize(params: { response_type: string; client_id: string; redirect_uri: string; scope?: string; state?: string; action: 'grant' | 'deny'; code_challenge?: string; code_challenge_method?: 'plain' | 'S256'; }, context: BRC): Promise<{ redirectUri: string; }>;