/** * This file is part of the NocoBase (R) project. * Copyright (c) 2020-2024 NocoBase Co., Ltd. * Authors: NocoBase Team. * * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. * For more information, please refer to: https://www.nocobase.com/agreement. */ declare const PRESET_KEY_LIST: readonly ["today", "now", "yesterday", "tomorrow", "thisWeek", "lastWeek", "nextWeek", "thisMonth", "lastMonth", "nextMonth", "thisQuarter", "lastQuarter", "nextQuarter", "thisYear", "lastYear", "nextYear"]; export type CtxDatePreset = (typeof PRESET_KEY_LIST)[number]; export type CtxDateRelativeDirection = 'next' | 'past'; export type CtxDateRelativeUnit = 'day' | 'week' | 'month' | 'year'; export type CtxDateExpressionConfig = { kind: 'exact'; value: string | [string, string]; format?: string; } | { kind: 'relative'; direction: CtxDateRelativeDirection; amount: number; unit: CtxDateRelativeUnit; format?: string; } | { kind: 'preset'; preset: CtxDatePreset; format?: string; }; export declare function isCtxDatePathPrefix(pathSegments: string[]): boolean; export declare function encodeBase64Url(input: string): string; export declare function decodeBase64Url(input: string): string | undefined; export declare function isCtxDateExpression(value: unknown): value is string; export declare function isCompleteCtxDatePath(pathSegments: string[]): boolean; export declare function parseCtxDateExpression(value: unknown): any; export declare function parseCtxDateExpressionConfig(value: unknown): CtxDateExpressionConfig | undefined; export declare function serializeCtxDateExpressionConfig(config: CtxDateExpressionConfig): string | undefined; export declare function serializeCtxDateValue(value: unknown): string | undefined; export declare function resolveCtxDatePath(pathSegments: string[]): any; export {};