/** * @param {string} name the cookie name * @param {Document | { cookie: string }} _document overwriteable for testing * @returns {string | null} */ export function getCookie(name: string, _document?: Document | { cookie: string; }): string | null; /** * Creates a request transformer that adds a XSRF header for protecting * against cross-site request forgery. * @param {string} cookieName the cookie name * @param {string} headerName the header name * @param {string[]} xsrfTrustedOrigins List of trusted origins * @param {Document | { cookie: string }} _document overwriteable for testing * @returns {RequestInterceptor} */ export function createXsrfRequestInterceptor(cookieName: string, headerName: string, xsrfTrustedOrigins: string[], _document?: Document | { cookie: string; }): RequestInterceptor; export type RequestInterceptor = import('../../types/types.js').RequestInterceptor; //# sourceMappingURL=xsrfHeader.d.ts.map