import { ActionsObservable, StateObservable } from 'redux-observable'; import { Observable } from 'rxjs'; import { updateAddresses } from '../../../entity/address/addressReducer'; import { RootState } from '../../../rootStateTypes'; import { ZeniAPI } from '../../../zeniAPI'; import { resetNewAddressDataInLocalStore } from '../../addressView/addressViewReducer'; import { saveInvoicingSettingsFailure, saveInvoicingSettingsSuccess, submitInvoicingBrandingForm } from './settingsViewReducer'; export type SubmitActionType = ReturnType | ReturnType | ReturnType | ReturnType | ReturnType; /** * On `submitInvoicingBrandingForm`, PUT the settings body built from the branding * draft + the business address captured via the shared Address screen. The * address is sent as a structured object (same shape as the customer save flow); * state is updated from the response — mirroring `saveInvoicingCustomerEpic`. */ export declare const submitInvoicingBrandingFormEpic: (actions$: ActionsObservable, state$: StateObservable, zeniAPI: ZeniAPI) => Observable; /** * Seed the shared Address screen with the existing business address when settings * load — looked up in the shared address store by `address_id`, same as the * customer billing-address flow. Skips when an in-progress draft already exists. */