declare function useDouble(path: Path, config?: Record): Promise Promise; }>; declare type Bundler = 'webpack' | 'vite' | 'rollup'; /** * This sets the HTTP path pointing to the root double API in the Laravel project * By default this should be https://{yourdomain}.com/double * * @param backendPath */ declare const installDouble: (backendPath: string, bundler: Bundler) => void; /** * Sets the custom headers. This overrides all existing custom headers * @example { Cookie: 'myCookie=1', 'x-my-custom-header': 5 } * @param headers An object where the keys are the names of the header and the values are the values that should be set */ declare const setCustomHeaders: (headers: Record) => void; /** * Sets a single header that will be sent with every request * * @param header the name of the header * @param value the value that should be set for that header */ declare const setCustomHeader: (header: string, value: string) => void; export { installDouble, setCustomHeader, setCustomHeaders, useDouble };