@ledgerhq/live-common
Version:
Common ground for the Ledger Live apps
68 lines • 3.39 kB
TypeScript
import { z } from "zod";
export type ModularDrawerConfiguration = {
assets?: {
filter?: string;
leftElement?: string;
rightElement?: string;
};
networks?: {
rightElement?: string;
leftElement?: string;
};
};
export declare const filterOptions: readonly ["topNetworks", "undefined"];
export declare const assetsLeftElementOptions: readonly ["apy", "marketTrend", "undefined"];
export declare const assetsRightElementOptions: readonly ["balance", "marketTrend", "undefined"];
export declare const networksLeftElementOptions: readonly ["numberOfAccounts", "numberOfAccountsAndApy", "undefined"];
export declare const networksRightElementOptions: readonly ["balance", "undefined"];
export declare const EnhancedModularDrawerConfigurationSchema: z.ZodObject<{
assets: z.ZodOptional<z.ZodObject<{
filter: z.ZodOptional<z.ZodEnum<["topNetworks", "undefined"]>>;
leftElement: z.ZodOptional<z.ZodEnum<["apy", "marketTrend", "undefined"]>>;
rightElement: z.ZodOptional<z.ZodEnum<["balance", "marketTrend", "undefined"]>>;
}, "strip", z.ZodTypeAny, {
filter?: "undefined" | "topNetworks" | undefined;
leftElement?: "undefined" | "apy" | "marketTrend" | undefined;
rightElement?: "undefined" | "balance" | "marketTrend" | undefined;
}, {
filter?: "undefined" | "topNetworks" | undefined;
leftElement?: "undefined" | "apy" | "marketTrend" | undefined;
rightElement?: "undefined" | "balance" | "marketTrend" | undefined;
}>>;
networks: z.ZodOptional<z.ZodObject<{
leftElement: z.ZodOptional<z.ZodEnum<["numberOfAccounts", "numberOfAccountsAndApy", "undefined"]>>;
rightElement: z.ZodOptional<z.ZodEnum<["balance", "undefined"]>>;
}, "strip", z.ZodTypeAny, {
leftElement?: "undefined" | "numberOfAccounts" | "numberOfAccountsAndApy" | undefined;
rightElement?: "undefined" | "balance" | undefined;
}, {
leftElement?: "undefined" | "numberOfAccounts" | "numberOfAccountsAndApy" | undefined;
rightElement?: "undefined" | "balance" | undefined;
}>>;
}, "strip", z.ZodTypeAny, {
networks?: {
leftElement?: "undefined" | "numberOfAccounts" | "numberOfAccountsAndApy" | undefined;
rightElement?: "undefined" | "balance" | undefined;
} | undefined;
assets?: {
filter?: "undefined" | "topNetworks" | undefined;
leftElement?: "undefined" | "apy" | "marketTrend" | undefined;
rightElement?: "undefined" | "balance" | "marketTrend" | undefined;
} | undefined;
}, {
networks?: {
leftElement?: "undefined" | "numberOfAccounts" | "numberOfAccountsAndApy" | undefined;
rightElement?: "undefined" | "balance" | undefined;
} | undefined;
assets?: {
filter?: "undefined" | "topNetworks" | undefined;
leftElement?: "undefined" | "apy" | "marketTrend" | undefined;
rightElement?: "undefined" | "balance" | "marketTrend" | undefined;
} | undefined;
}>;
/**
* Enhanced configuration for the modular drawer.
* Extends the base configuration by allowing customization of `assets` and `networks` properties.
*/
export type EnhancedModularDrawerConfiguration = Omit<ModularDrawerConfiguration, "assets" | "networks"> & z.infer<typeof EnhancedModularDrawerConfigurationSchema>;
//# sourceMappingURL=types.d.ts.map