UNPKG

746 BTypeScriptView Raw
1/**
2 * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4 */
5/**
6 * Returns the CSRF token value. The value is a hash stored in `document.cookie`
7 * under the `ckCsrfToken` key. The CSRF token can be used to secure the communication
8 * between the web browser and the CKFinder server.
9 */
10export declare function getCsrfToken(): string;
11/**
12 * Returns the value of the cookie with a given name or `null` if the cookie is not found.
13 */
14export declare function getCookie(name: string): string | null;
15/**
16 * Sets the value of the cookie with a given name.
17 */
18export declare function setCookie(name: string, value: string): void;