1 | import { Destination, DestinationNameAndJwt } from '../connectivity/scp-cf/destination';
|
2 | import { HttpRequestConfig } from './http-client-types';
|
3 | /**
|
4 | * Get CSRF token and cookies for a destination and request configuration. The CSRF token and cookies will be retrieved based on the URL of the destination and the custom configuration given by the `requestConfig`.
|
5 | * If there is a relative url in the `requestConfig` it will be appended to the destination's URL, an absolute URL overwrites the destination related URL.
|
6 | * @param destination - The destination to get the headers from
|
7 | * @param requestConfig - An http request configuration containing additional information about the request, like URL or headers
|
8 | * @returns A promise to an object containing the CSRF related headers
|
9 | */
|
10 | export declare function buildCsrfHeaders<T extends HttpRequestConfig>(destination: Destination | DestinationNameAndJwt, requestConfig: Partial<T>): Promise<Record<string, any>>;
|
11 | export declare function buildCsrfFetchHeaders(headers: any): Record<string, any>;
|
12 | //# sourceMappingURL=csrf-token-header.d.ts.map |
\ | No newline at end of file |