import { BaseSchema, ObjectSchema } from '@sigiljs/seal'; import { InferSchema } from '@sigiljs/seal/types'; import { default as http } from 'node:http'; import { default as https } from 'node:https'; import { SigilOptions } from './common.types'; import { Internal } from '../../types'; export type RequestValidator = { [key: string]: BaseSchema; }; export type InferMeta = Partial>>>; export type MaybeInferMeta = InferMeta | undefined; export type MaybePromise = R extends Promise ? Promise | null> : R | null; export type ServerDefinition> = T extends Record ? (T extends { serverless: true; } ? undefined : (T["server"] extends { https: https.ServerOptions; } ? https.Server : http.Server)) : http.Server;