import type { AstroConfig } from '../@types/astro-core';
import { z } from 'zod';
export declare const AstroConfigSchema: z.ZodObject<{
    projectRoot: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodString>>, URL>;
    src: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodString>>, URL>;
    pages: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodString>>, URL>;
    layouts: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodString>>, URL>;
    public: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodString>>, URL>;
    dist: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodString>>, URL>;
    renderers: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
    markdownOptions: z.ZodDefault<z.ZodOptional<z.ZodObject<{
        footnotes: z.ZodOptional<z.ZodBoolean>;
        gfm: z.ZodOptional<z.ZodBoolean>;
        render: z.ZodDefault<z.ZodOptional<z.ZodAny>>;
    }, "strip", z.ZodTypeAny, {
        footnotes?: boolean | undefined;
        gfm?: boolean | undefined;
        render?: any;
    }, {
        footnotes?: boolean | undefined;
        gfm?: boolean | undefined;
        render?: any;
    }>>>;
    buildOptions: z.ZodDefault<z.ZodOptional<z.ZodObject<{
        site: z.ZodOptional<z.ZodString>;
        sitemap: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
        pageUrlFormat: z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"file">, z.ZodLiteral<"directory">]>>>;
    }, "strip", z.ZodTypeAny, {
        site?: string | undefined;
        sitemap: boolean;
        pageUrlFormat: "file" | "directory";
    }, {
        site?: string | undefined;
        sitemap?: boolean | undefined;
        pageUrlFormat?: "file" | "directory" | undefined;
    }>>>;
    devOptions: z.ZodDefault<z.ZodOptional<z.ZodObject<{
        hostname: z.ZodDefault<z.ZodOptional<z.ZodString>>;
        port: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
        trailingSlash: z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"always">, z.ZodLiteral<"never">, z.ZodLiteral<"ignore">]>>>;
    }, "strip", z.ZodTypeAny, {
        hostname: string;
        port: number;
        trailingSlash: "never" | "always" | "ignore";
    }, {
        hostname?: string | undefined;
        port?: number | undefined;
        trailingSlash?: "never" | "always" | "ignore" | undefined;
    }>>>;
    vite: z.ZodDefault<z.ZodOptional<z.ZodAny>>;
}, "strip", z.ZodTypeAny, {
    vite?: any;
    projectRoot: URL;
    src: URL;
    pages: URL;
    layouts: URL;
    public: URL;
    dist: URL;
    renderers: string[];
    markdownOptions: {
        footnotes?: boolean | undefined;
        gfm?: boolean | undefined;
        render?: any;
    };
    buildOptions: {
        site?: string | undefined;
        sitemap: boolean;
        pageUrlFormat: "file" | "directory";
    };
    devOptions: {
        hostname: string;
        port: number;
        trailingSlash: "never" | "always" | "ignore";
    };
}, {
    projectRoot?: string | undefined;
    src?: string | undefined;
    pages?: string | undefined;
    layouts?: string | undefined;
    public?: string | undefined;
    dist?: string | undefined;
    renderers?: string[] | undefined;
    markdownOptions?: {
        footnotes?: boolean | undefined;
        gfm?: boolean | undefined;
        render?: any;
    } | undefined;
    buildOptions?: {
        site?: string | undefined;
        sitemap?: boolean | undefined;
        pageUrlFormat?: "file" | "directory" | undefined;
    } | undefined;
    devOptions?: {
        hostname?: string | undefined;
        port?: number | undefined;
        trailingSlash?: "never" | "always" | "ignore" | undefined;
    } | undefined;
    vite?: any;
}>;
/** Turn raw config values into normalized values */
export declare function validateConfig(userConfig: any, root: string): Promise<AstroConfig>;
interface LoadConfigOptions {
    cwd?: string;
    filename?: string;
}
interface LoadConfigOptions {
    cwd?: string;
    filename?: string;
}
/** Attempt to load an `astro.config.mjs` file */
export declare function loadConfig(options: LoadConfigOptions): Promise<AstroConfig>;
export declare function formatConfigError(err: z.ZodError): string;
export {};
