import type { ApiResponse } from "../../api/base-client"; import type { CommonErrors } from "../../api/base-service"; export type { CommonErrors } from "../../api/base-service"; /** * Type for the handleResponse function from BaseService. * Standalone API functions receive this as a dependency from AuthService. */ export type HandleResponseFn = (response: ApiResponse, handler: () => T) => T | CommonErrors; /** * Builds an endpoint path with optional rid (registration_id) query parameter. * Parallel to sid (sign_in_id) used in the sign-in flow. * Uses URL API to safely handle existing query parameters. */ export declare function withRid(baseUrl: string, path: string, rid?: string): string;