osr-mono/packages/osr-cli-commons/lib/each.d.ts
2025-01-29 18:17:03 +01:00

37 lines
994 B
TypeScript

import { z } from 'zod';
import * as CLI from 'yargs';
import { IOptionsEach } from '../lib/types';
export declare const zodSchema: () => z.ZodObject<{
logLevel: z.ZodDefault<z.ZodString>;
main: z.ZodString;
log: z.ZodOptional<z.ZodString>;
list: z.ZodString;
root: z.ZodOptional<z.ZodString>;
cwd: z.ZodOptional<z.ZodString>;
trace: z.ZodDefault<z.ZodBoolean>;
env: z.ZodDefault<z.ZodString>;
profile: z.ZodDefault<z.ZodString>;
}, "strip", z.ZodTypeAny, {
main?: string;
cwd?: string;
env?: string;
log?: string;
trace?: boolean;
logLevel?: string;
list?: string;
root?: string;
profile?: string;
}, {
main?: string;
cwd?: string;
env?: string;
log?: string;
trace?: boolean;
logLevel?: string;
list?: string;
root?: string;
profile?: string;
}>;
export declare const yargsOptions: (yargs: CLI.Argv) => CLI.Argv<{}>;
export declare const each: (opts: IOptionsEach) => Promise<any[]>;