UNPKG

@telegram-apps/sdk

Version:

TypeScript Source Development Kit for Telegram Mini Apps client application.

51 lines (50 loc) 1.93 kB
import { Computed } from '@telegram-apps/signals'; /** * True if CSS variables are currently bound. */ export declare const _isCssVarsBound: import('@telegram-apps/signals').Signal<boolean>, isCssVarsBound: Computed<boolean>; /** * Complete component state. */ export declare const _state: import('@telegram-apps/signals').Signal<Partial<Record<string, `#${string}`>>>, state: Computed<Partial<Record<string, `#${string}`>>>; /** * @since v6.10 */ export declare const accentTextColor: Computed<`#${string}` | undefined>; export declare const backgroundColor: Computed<`#${string}` | undefined>; export declare const buttonColor: Computed<`#${string}` | undefined>; export declare const buttonTextColor: Computed<`#${string}` | undefined>; /** * @since v7.10 */ export declare const bottomBarBgColor: Computed<`#${string}` | undefined>; export declare const destructiveTextColor: Computed<`#${string}` | undefined>; /** * @since v6.10 */ export declare const headerBackgroundColor: Computed<`#${string}` | undefined>; export declare const hintColor: Computed<`#${string}` | undefined>; /** * @returns True if the current color scheme is recognized as dark. * This value is calculated based on the current theme's background color. */ export declare const isDark: Computed<boolean>; export declare const linkColor: Computed<`#${string}` | undefined>; export declare const secondaryBackgroundColor: Computed<`#${string}` | undefined>; /** * @since v6.10 */ export declare const sectionBackgroundColor: Computed<`#${string}` | undefined>; /** * @since v6.10 */ export declare const sectionHeaderTextColor: Computed<`#${string}` | undefined>; /** * @since v7.6 */ export declare const sectionSeparatorColor: Computed<`#${string}` | undefined>; /** * @since v6.10 */ export declare const subtitleTextColor: Computed<`#${string}` | undefined>; export declare const textColor: Computed<`#${string}` | undefined>;