import { type ApiClientInterface, BaseService, type CommonErrors, type Payload, type ServiceDependencies } from "../../api/base-service"; import { type ProfileErrorResponse, type UserProfileData, type UserProfileFormError } from "./schemas"; export type { ProfileErrorResponse, UserProfileData, UserProfileFormError } from "./schemas"; export { UserProfileSchema } from "./schemas"; export type UpdateProfilePayload = Record; export type ProfileUpdateArgs = Payload; export type ResponseInfo = { httpStatus?: number; responseData?: unknown; }; export type ProfileGetResult = [...CommonErrors, ResponseInfo?] | ["missing_id_token", null, ResponseInfo?] | ["unauthorized", ProfileErrorResponse, ResponseInfo?] | ["invalid_profile_data", null, ResponseInfo?] | ["server_error", ProfileErrorResponse | null, ResponseInfo?] | [null, UserProfileData, ResponseInfo?]; export type ProfileUpdateResult = [...CommonErrors, ResponseInfo?] | ["missing_id_token", null, ResponseInfo?] | ["unauthorized", ProfileErrorResponse, ResponseInfo?] | ["invalid_profile_data", null, ResponseInfo?] | ["validation_error", UserProfileFormError, ResponseInfo?] | ["server_error", ProfileErrorResponse | null, ResponseInfo?] | [null, UserProfileData, ResponseInfo?]; export declare class ProfileService extends BaseService { constructor(client: ApiClientInterface, deps?: ServiceDependencies); /** Build response info for error diagnostics */ private buildResponseInfo; get(): Promise; update(args: ProfileUpdateArgs): Promise; }