/// import boxen from 'boxen'; import { ObjectMap, Optional, Primitive, PropertyRecord, StringRecord } from './standard-types'; import { Profile } from './enum-types'; import { Camera } from '../tools/camera'; import { Color } from '../tools/color'; import { Vector } from '../tools/vector'; /** * ObjectConstructor * @desc Type representing object constructor interface */ export interface ObjectConstructor { assign(...objects: any[]): any; } /** * GradleDependency * @desc Type representing gradle dependency */ export declare type GradleDependency = { group: string; name: string; version?: string; }; /** * DockerComposeConfig * @desc Type representing docker compose configuration */ export declare type DockerComposeConfig = { version?: string; services?: StringRecord; }; /** * DockerComposeService * @desc Type representing docker compose service */ export declare type DockerComposeService = { image?: string; build?: { context?: string; dockerfile?: string; }; }; /** * UserPass * @desc Type representing user pass interface */ export interface UserPass { username: string; password: string; } /** * JenkinsPluginRenovate * @desc Type representing jenkins plugin renovate */ export declare type JenkinsPluginRenovate = { ignore?: boolean; }; /** * JenkinsPluginRenovate * @desc Type representing jenkins plugin source */ export declare type JenkinsPluginSource = { version?: string; url?: string; }; /** * JenkinsPluginRenovate * @desc Type representing jenkins plugin */ export declare type JenkinsPlugin = { artifactId?: string; groupId?: string; source?: JenkinsPluginSource; renovate?: JenkinsPluginRenovate; }; /** * JenkinsPluginRenovate * @desc Type representing jenkins plugins */ export declare type JenkinsPlugins = { plugins?: JenkinsPlugin[]; }; /** * Properties * @desc Type representing collection of properties */ export declare type Properties = { [name: string]: T; }; /** * Headers * @desc Type representing collection of headers */ export declare type Headers = Record>; /** * PathLike * @desc Type representing supported paths */ export declare type PathLike = string | Buffer | URL; /** * HttpRequest * @desc Type representing supported http request methods */ export declare type HttpRequest = 'get' | 'post' | 'put' | 'patch' | 'head' | 'delete'; /** * ProfileOptions * @desc Type representing profile options */ export declare type ProfileOptions = { /** * Output options */ readonly outputOptions?: boxen.Options; }; /** * FormatCodeSettings * @desc Type representing format code settings */ export declare type FormatCodeSettings = Record; /** * Result * @desc Type representing result options */ export interface Result { fileName: string; settings: Optional; message: string; error: boolean; src: string; dest: string; throwNotFound?: boolean; } /** * ResultMap * @desc Type representing result map */ export interface ResultMap { [index: string]: Result; } /** * Fields * @desc Type representing supported fields */ export interface Fields { [key: string]: string | string[]; } /** * ArrayBuffer * @desc Type representing array buffer interface */ export interface ArrayBuffer { /** * Read-only. The length of the ArrayBuffer (in bytes). */ readonly byteLength: number; /** * Returns a section of an ArrayBuffer. */ slice(begin: number, end?: number): ArrayBuffer; } /** * LiteralUnion * @desc Type representing literal union */ export declare type LiteralUnion = LiteralType | (BaseType & { _?: never; }); export declare type Key = string | number; export declare type Ref = string | ((instance: T) => any); export declare type ComponentState = {} | void; /** * ClassAttributes * @desc Type representing attributes */ export interface Attributes { key?: Key; } /** * ClassAttributes * @desc Type representing class attributes */ export interface ClassAttributes extends Attributes { ref?: Ref; } /** * Factory * @desc Type representing factory */ export declare type Factory = (new () => T) | (new () => { props: P; }); /** * Factory * @desc Type representing property factory */ export declare type PropertyFactory = Factory>; /** * Files * @desc Type representing supported files */ export interface Files { [key: string]: File | File[]; } /** * ResponseType * @desc Type representing supported response types */ export declare type ResponseType = 'json' | 'buffer' | 'text'; /** * PreCommitConfig * @desc Type representing pre-commit configuration */ export declare type PreCommitConfig = { repos: PreCommitDependency[]; }; export declare function matchesPrecommitConfigHeuristic(data: unknown): data is PreCommitConfig; /** * PreCommitDependency * @desc Type representing pre-commit dependency */ export declare type PreCommitDependency = { repo: string; rev: string; }; export declare function matchesPrecommitDependencyHeuristic(data: unknown): data is PreCommitDependency; /** * LockFileEntry * @desc Type representing lock file entry */ export declare type LockFileEntry = Record; /** * LockFile * @desc Type representing lock file */ export interface LockFile { lockedVersions: Record; lockfileVersion?: number; isYarn1?: boolean; } /** * SandboxObject * @desc Type representing sandbox type */ export declare type SandboxObject = { get(key: string): any; set(key: string, value: any): void; }; /** * Location * @desc Type representing location */ export declare type Location = { longitude: number; latitude: number; }; /** * Comparable * @desc Type representing comparable interface */ export interface Comparable { compareTo: (object: any) => number; } /** * LanguageFeature * @desc Type representing supported language features */ export declare type LanguageFeature = 'enum' | 'union' | 'no-defaults' | 'strict-optional' | 'date-time' | 'integer-string' | 'bool-string' | 'uuid' | 'minmax' | 'minmaxlength' | 'pattern'; export declare type HttpMethod = 'GET' | 'POST' | 'PUT' | 'DELETE' | 'HEAD' | 'OPTIONS' | 'TRACE'; /** * Types * @desc Class representing supported types */ export declare class Types { static typeMap: ObjectMap SandboxObject>; } /** * MatchResult * @desc Type representing supported response types */ export declare type MatchResult = { idx: number; len: number; label: string; substr: string; }; /** * GitOptions * @desc Type representing git options */ export declare type DataSource = { datasource: string; registryUrl?: string; lookupName: string; }; /** * GitOptions * @desc Type representing git options */ export declare type GitOptions = Record; /** * FileData * @desc Type representing file data */ export interface FileData { isLastPage: boolean; lines: { text: string; }[]; size: number; } /** * UpdateType * @desc Type representing updates labels */ export declare type UpdateType = 'major' | 'minor' | 'patch' | 'pin' | 'digest' | 'lockFileMaintenance' | 'lockfileUpdate' | 'rollback' | 'bump'; /** * GroupConfig * @desc Type representing group configuration */ export interface GroupConfig extends Record { branchName?: string; branchTopic?: string; } /** * Level * @desc Type representing supported logging levels */ export declare type Level = 'debug' | 'warning' | 'error'; /** * Direction * @desc Type representing direction */ export declare type Direction = -1 | 0 | 1; /** * Options * @desc Type representing direction */ export interface Options { dryRun?: boolean; verbose?: boolean; baseDir?: string; throwNotFound?: boolean; } /** * Ray * @desc Type representing ray */ export interface Ray { start: Vector; dir: Vector; } /** * Intersection * @desc Type representing intersection */ export interface Intersection { thing: T; ray: Ray; dist: number; } /** * Surface * @desc Type representing surface */ export interface Surface { diffuse: (pos: Vector) => Color; specular: (pos: Vector) => Color; reflect: (pos: Vector) => number; roughness: number; } /** * Thing * @desc Type representing thing */ export interface Thing { intersect: (ray: Ray) => Optional>; normal: (pos: Vector) => Vector; surface: Surface; } /** * Light * @desc Type representing light */ export interface Light { pos: Vector; color: Color; } /** * Scene * @desc Type representing scene */ export interface Scene { things: Thing[]; lights: Light[]; camera: Camera; } /** * WebRequest * @desc Interface representing web request options */ export declare type WebRequest = { method: string; uri: string; body: string; headers: any; }; /** * WebResponse * @desc Interface representing web response options */ export declare type WebResponse = { statusCode: number; statusMessage: string; headers: any; body: any; }; /** * WebRequestOptions * @desc Interface representing web request options */ export declare type WebRequestOptions = { retriableErrorCodes?: string[]; retryCount?: number; retryIntervalInSeconds?: number; retriableStatusCodes?: number[]; retryRequestTimedout?: boolean; }; /** * GenericObject * @desc Interface representing generic object data */ export interface GenericObject { [key: string]: any; } /** * Rectangular * @desc Interface representing rectangular data */ export interface Rectangular { x: number; y: number; width: number; height: number; } /** * Point * @desc Interface representing point style data */ export interface Point { x: number; y: number; } /** * TextStyle * @desc Interface representing text style data */ export interface TextStyle { font?: string; color?: string; } /** * TickValueDescription * @desc Interface representing tick value data */ export interface TickValueDescription { value: number; color?: string; } /** * ProfileOptions * @desc Type representing profile configuration options */ export declare type ProfileRecord = { [K in Profile]: T; }; /** * ConfigOptions * @desc Type representing configuration options */ export declare type ConfigOptions = { /** * Configuration options. */ readonly options: ProfileRecord; }; //# sourceMappingURL=domain-types.d.ts.map