/** * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE */ import { InjectionToken } from '@angular/core'; import { MagInitConfig } from 'ng-stalk/core/model'; import { NzSizeDSType } from 'ng-zorro-antd/core/types'; import { CodeAndName } from "ng-stalk/core/types"; export interface NsConfig { frame?: FrameConfig; button?: ButtonConfig; code?: CodeConfig; datetime?: DatetimeConfig; crud?: CrudConfig; space?: SpaceConfig; } export interface FrameConfig { nsDebug?: boolean; nsGnbItems: string[]; nsInitConfig?: MagInitConfig; nsCheckVersion?: boolean; nsTimeZones?: CodeAndName[]; nsSelectableGnbItem?: boolean; nsEnabledSwitchMenu?: boolean; } export interface ButtonConfig { nzSize?: NzSizeDSType; } export interface DatetimeConfig { nsDebug?: boolean; nsDatetimeAsNoLimitedTime?: string; nsNoLimitedTimeText?: string; nsExposeValueIfNoLimitedTime?: boolean; } export interface CodeConfig { data?: { [key: string]: CodeAndName[]; }; } export interface CrudConfig { nsDebug?: boolean; nsDisableDynamicScroll?: boolean; } export interface SpaceConfig { nsDebug?: boolean; } export declare type NsConfigKey = keyof NsConfig; /** * User should provide an object implements this interface to set global configurations. */ export declare const NS_CONFIG: InjectionToken;