1 | import React from 'react';
|
2 | import type { ProSettings } from '../../defaultSettings';
|
3 | type MergerSettingsType<T> = Partial<T> & {
|
4 | colorPrimary?: string;
|
5 | colorWeak?: boolean;
|
6 | };
|
7 | export type SettingItemProps = {
|
8 | title: React.ReactNode;
|
9 | action: React.ReactElement;
|
10 | disabled?: boolean;
|
11 | disabledReason?: React.ReactNode;
|
12 | };
|
13 | export type SettingDrawerProps = {
|
14 | defaultSettings?: MergerSettingsType<ProSettings>;
|
15 | settings?: MergerSettingsType<ProSettings>;
|
16 | collapse?: boolean;
|
17 | onCollapseChange?: (collapse: boolean) => void;
|
18 | getContainer?: any;
|
19 | hideHintAlert?: boolean;
|
20 | hideCopyButton?: boolean;
|
21 |
|
22 | enableDarkTheme?: boolean;
|
23 | prefixCls?: string;
|
24 | colorList?: false | {
|
25 | key: string;
|
26 | color: string;
|
27 | title?: string;
|
28 | }[];
|
29 | onSettingChange?: (settings: MergerSettingsType<ProSettings>) => void;
|
30 | pathname?: string;
|
31 | disableUrlParams?: boolean;
|
32 | themeOnly?: boolean;
|
33 | };
|
34 | export type SettingDrawerState = {
|
35 | collapse?: boolean;
|
36 | language?: string;
|
37 | } & MergerSettingsType<ProSettings>;
|
38 | export declare const getFormatMessage: () => (data: {
|
39 | id: string;
|
40 | defaultMessage?: string;
|
41 | }) => string;
|
42 |
|
43 |
|
44 |
|
45 |
|
46 |
|
47 | export declare const SettingDrawer: React.FC<SettingDrawerProps>;
|
48 | export {};
|