export declare const initOAuth: ({ url }: { url: string; }) => Promise<{ success: { state: string; }; } | { error: unknown; }>; export declare const finalizeOAuth: ({ url, body }: { url: string; body: { code: string | null; state: string | null; }; }) => Promise<{ success: { token: string; }; } | { error: unknown; }>;