/** * * Creates a Heroku application backend. * @param {string} appName The Heroku application name */ export declare const heroku: (appName: string) => (req: Request, basePath: string) => Promise; /** * Creates a Glitch project backend. * @param projectName The name of the glitch project (like .glitch.me) */ export declare const glitch: (projectName: string) => (req: Request, basePath: string) => Promise; /** * Creates a hosted Ghost backend. * @param subdomain Ghost subdomain (like .ghost.io) * @param customDomain Custom domain ghost expects (only if setup with Ghost control panel) */ export declare const ghost: (subdomain: string, customDomain?: string | undefined) => (req: Request, basePath: string) => Promise; /** * Creates a surge.sh backend * @param {string} subdomain The .surge.sh for the surge.sh site */ export declare const surge: (subdomain: string) => (req: Request, basePath: string) => Promise; /** * Creates a generic proxy backend * @param {string} origin The origin server to use (should be an ip, or resolve to a different IP) * @param {Object} [headers] Headers to pass to the origin server */ export declare const generic: (origin: string, headers: Headers) => (req: Request, basePath: string) => Promise; /** * Creates a backend to proxy published Github Pages sites. Auto detects sites with cnames specified. * @param {string} repository The / to request. */ export declare const githubPages: (repository: string) => (req: Request, basePath: string) => Promise; /** * * Creates a UnMarkDocs application backend. * @param {string} appName The UnMarkDocs application name */ export declare const unmarkdocs: (appName: string) => (req: Request, basePath: string) => Promise; declare const backends: { generic: (origin: string, headers: Headers) => (req: Request, basePath: string) => Promise; ghost: (subdomain: string, customDomain?: string | undefined) => (req: Request, basePath: string) => Promise; githubPages: (repository: string) => (req: Request, basePath: string) => Promise; glitch: (projectName: string) => (req: Request, basePath: string) => Promise; heroku: (appName: string) => (req: Request, basePath: string) => Promise; surge: (subdomain: string) => (req: Request, basePath: string) => Promise; unmarkdocs: (appName: string) => (req: Request, basePath: string) => Promise; }; export default backends;