@chakra-ui/cli
Version:
Generate theme typings for autocomplete
206 lines (205 loc) • 5.98 kB
TypeScript
import { z } from "zod";
export declare const compositionFileSchema: z.ZodObject<{
type: z.ZodString;
id: z.ZodString;
file: z.ZodObject<{
name: z.ZodString;
content: z.ZodString;
}, "strip", z.ZodTypeAny, {
name: string;
content: string;
}, {
name: string;
content: string;
}>;
component: z.ZodString;
npmDependencies: z.ZodArray<z.ZodString, "many">;
fileDependencies: z.ZodArray<z.ZodString, "many">;
}, "strip", z.ZodTypeAny, {
type: string;
id: string;
file: {
name: string;
content: string;
};
component: string;
npmDependencies: string[];
fileDependencies: string[];
}, {
type: string;
id: string;
file: {
name: string;
content: string;
};
component: string;
npmDependencies: string[];
fileDependencies: string[];
}>;
export interface CompositionFile extends z.infer<typeof compositionFileSchema> {
}
export declare const compositionIndexSchema: z.ZodArray<z.ZodObject<{
type: z.ZodString;
id: z.ZodString;
file: z.ZodString;
component: z.ZodString;
npmDependencies: z.ZodArray<z.ZodString, "many">;
fileDependencies: z.ZodArray<z.ZodString, "many">;
}, "strip", z.ZodTypeAny, {
type: string;
id: string;
file: string;
component: string;
npmDependencies: string[];
fileDependencies: string[];
}, {
type: string;
id: string;
file: string;
component: string;
npmDependencies: string[];
fileDependencies: string[];
}>, "many">;
export interface Compositions extends z.infer<typeof compositionIndexSchema> {
}
export declare const processEnvSchema: z.ZodObject<{
REGISTRY_URL: z.ZodDefault<z.ZodString>;
/** Base URL for docs site API (types, theme, search, examples). */
CHAKRA_DOCS_URL: z.ZodDefault<z.ZodString>;
HTTPS_PROXY: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
REGISTRY_URL: string;
CHAKRA_DOCS_URL: string;
HTTPS_PROXY?: string | undefined;
}, {
REGISTRY_URL?: string | undefined;
CHAKRA_DOCS_URL?: string | undefined;
HTTPS_PROXY?: string | undefined;
}>;
export declare const componentListSchema: z.ZodObject<{
components: z.ZodArray<z.ZodString, "many">;
charts: z.ZodArray<z.ZodString, "many">;
}, "strip", z.ZodTypeAny, {
components: string[];
charts: string[];
}, {
components: string[];
charts: string[];
}>;
export type ComponentList = z.infer<typeof componentListSchema>;
export declare const searchItemSchema: z.ZodObject<{
label: z.ZodString;
slug: z.ZodString;
url: z.ZodString;
description: z.ZodString;
category: z.ZodString;
}, "strip", z.ZodTypeAny, {
label: string;
slug: string;
url: string;
description: string;
category: string;
}, {
label: string;
slug: string;
url: string;
description: string;
category: string;
}>;
export type SearchItem = z.infer<typeof searchItemSchema>;
export declare const searchResultsSchema: z.ZodArray<z.ZodObject<{
label: z.ZodString;
slug: z.ZodString;
url: z.ZodString;
description: z.ZodString;
category: z.ZodString;
}, "strip", z.ZodTypeAny, {
label: string;
slug: string;
url: string;
description: string;
category: string;
}, {
label: string;
slug: string;
url: string;
description: string;
category: string;
}>, "many">;
export declare const themeEntrySchema: z.ZodObject<{
key: z.ZodString;
values: z.ZodUnknown;
}, "strip", z.ZodTypeAny, {
key: string;
values?: unknown;
}, {
key: string;
values?: unknown;
}>;
export declare const themeIndexSchema: z.ZodArray<z.ZodObject<{
key: z.ZodString;
values: z.ZodUnknown;
}, "strip", z.ZodTypeAny, {
key: string;
values?: unknown;
}, {
key: string;
values?: unknown;
}>, "many">;
export type ThemeEntry = z.infer<typeof themeEntrySchema>;
export declare const proBlockResponseSchema: z.ZodObject<{
files: z.ZodOptional<z.ZodArray<z.ZodObject<{
filename: z.ZodOptional<z.ZodString>;
content: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
content?: string | undefined;
filename?: string | undefined;
}, {
content?: string | undefined;
filename?: string | undefined;
}>, "many">>;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
files: z.ZodOptional<z.ZodArray<z.ZodObject<{
filename: z.ZodOptional<z.ZodString>;
content: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
content?: string | undefined;
filename?: string | undefined;
}, {
content?: string | undefined;
filename?: string | undefined;
}>, "many">>;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
files: z.ZodOptional<z.ZodArray<z.ZodObject<{
filename: z.ZodOptional<z.ZodString>;
content: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
content?: string | undefined;
filename?: string | undefined;
}, {
content?: string | undefined;
filename?: string | undefined;
}>, "many">>;
}, z.ZodTypeAny, "passthrough">>;
export type ProBlockResponse = z.infer<typeof proBlockResponseSchema>;
export declare const addCommandFlagsSchema: z.ZodObject<{
force: z.ZodOptional<z.ZodBoolean>;
dryRun: z.ZodOptional<z.ZodBoolean>;
outdir: z.ZodOptional<z.ZodString>;
all: z.ZodOptional<z.ZodBoolean>;
tsx: z.ZodOptional<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
tsx?: boolean | undefined;
all?: boolean | undefined;
force?: boolean | undefined;
dryRun?: boolean | undefined;
outdir?: string | undefined;
}, {
tsx?: boolean | undefined;
all?: boolean | undefined;
force?: boolean | undefined;
dryRun?: boolean | undefined;
outdir?: string | undefined;
}>;
export interface AddCommandFlags extends z.infer<typeof addCommandFlagsSchema> {
}