import { StripeResource } from '../../StripeResource.js';
import { AddressParam, Address } from '../../shared.js';
import { RequestOptions, Response } from '../../lib.js';
export declare class SettingResource extends StripeResource {
    /**
     * Retrieves Tax Settings for a merchant.
     */
    retrieve(params?: Tax.SettingsRetrieveParams, options?: RequestOptions): Promise<Response<Settings>>;
    /**
     * Updates Tax Settings parameters used in tax calculations. All parameters are editable but none can be removed once set.
     */
    update(params?: Tax.SettingsUpdateParams, options?: RequestOptions): Promise<Response<Settings>>;
}
export interface Settings {
    /**
     * String representing the object's type. Objects of the same type share the same value.
     */
    object: 'tax.settings';
    defaults: Tax.Settings.Defaults;
    /**
     * The place where your business is located.
     */
    head_office: Tax.Settings.HeadOffice | null;
    /**
     * If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
     */
    livemode: boolean;
    /**
     * The status of the Tax `Settings`.
     */
    status: Tax.Settings.Status;
    status_details: Tax.Settings.StatusDetails;
}
export declare namespace Tax {
    namespace Settings {
        interface Defaults {
            /**
             * The tax calculation provider this account uses. Defaults to `stripe` when not using a [third-party provider](https://docs.stripe.com/tax/third-party-apps).
             */
            provider: Defaults.Provider;
            /**
             * Default [tax behavior](https://stripe.com/docs/tax/products-prices-tax-categories-tax-behavior#tax-behavior) used to specify whether the price is considered inclusive of taxes or exclusive of taxes. If the item's price has a tax behavior set, it will take precedence over the default tax behavior.
             */
            tax_behavior: Defaults.TaxBehavior | null;
            /**
             * Default [tax code](https://stripe.com/docs/tax/tax-categories) used to classify your products and prices.
             */
            tax_code: string | null;
        }
        interface HeadOffice {
            address: Address;
        }
        type Status = 'active' | 'pending';
        interface StatusDetails {
            active?: StatusDetails.Active;
            pending?: StatusDetails.Pending;
        }
        namespace Defaults {
            type Provider = 'anrok' | 'avalara' | 'sphere' | 'stripe';
            type TaxBehavior = 'exclusive' | 'inclusive' | 'inferred_by_currency';
        }
        namespace StatusDetails {
            interface Active {
            }
            interface Pending {
                /**
                 * The list of missing fields that are required to perform calculations. It includes the entry `head_office` when the status is `pending`. It is recommended to set the optional values even if they aren't listed as required for calculating taxes. Calculations can fail if missing fields aren't explicitly provided on every call.
                 */
                missing_fields: Array<string> | null;
            }
        }
    }
}
export declare namespace Tax {
    interface SettingsRetrieveParams {
        /**
         * Specifies which fields in the response should be expanded.
         */
        expand?: Array<string>;
    }
}
export declare namespace Tax {
    interface SettingsUpdateParams {
        /**
         * Default configuration to be used on Stripe Tax calculations.
         */
        defaults?: SettingsUpdateParams.Defaults;
        /**
         * Specifies which fields in the response should be expanded.
         */
        expand?: Array<string>;
        /**
         * The place where your business is located.
         */
        head_office?: SettingsUpdateParams.HeadOffice;
    }
    namespace SettingsUpdateParams {
        interface Defaults {
            /**
             * Specifies the default [tax behavior](https://stripe.com/docs/tax/products-prices-tax-categories-tax-behavior#tax-behavior) to be used when the item's price has unspecified tax behavior. One of inclusive, exclusive, or inferred_by_currency. Once specified, it cannot be changed back to null.
             */
            tax_behavior?: Defaults.TaxBehavior;
            /**
             * A [tax code](https://docs.stripe.com/tax/tax-categories) ID.
             */
            tax_code?: string;
        }
        interface HeadOffice {
            /**
             * The location of the business for tax purposes.
             */
            address: AddressParam;
        }
        namespace Defaults {
            type TaxBehavior = 'exclusive' | 'inclusive' | 'inferred_by_currency';
        }
    }
}
