studiocms
Version:
Astro Native CMS for AstroDB. Built from the ground up by the Astro community.
31 lines (30 loc) • 1.49 kB
TypeScript
import type { APIContext } from 'astro';
import { AstroError } from 'astro/errors';
import { z } from 'astro/zod';
import { Effect, Schema } from '../../../effect.js';
declare const FormDataEntryFields_base: Schema.Class<FormDataEntryFields, {
title: typeof Schema.String;
description: typeof Schema.String;
}, Schema.Struct.Encoded<{
title: typeof Schema.String;
description: typeof Schema.String;
}>, never, {
readonly title: string;
} & {
readonly description: string;
}, {}, {}>;
export declare class FormDataEntryFields extends FormDataEntryFields_base {
}
declare const AuthAPIUtils_base: Effect.Service.Class<AuthAPIUtils, "studiocms/routes/api/auth/shared/AuthAPIUtils", {
readonly effect: Effect.Effect<{
parseFormDataEntryToString: (formData: FormData, key: string) => Effect.Effect<string | null, Error, never>;
readJson: (context: APIContext) => Effect.Effect<any, Error, never>;
readFormData: (context: APIContext) => Effect.Effect<FormData, Error, never>;
badFormDataEntry: (title: string, description: string) => Effect.Effect<Response, import("effect/ParseResult").ParseError, never>;
validateEmail: (email: string) => Effect.Effect<z.SafeParseReturnType<string, string>, AstroError, never>;
}, never, never>;
}>;
export declare class AuthAPIUtils extends AuthAPIUtils_base {
static Provide: <A, E, R>(self: Effect.Effect<A, E, R>) => Effect.Effect<A, E, Exclude<R, AuthAPIUtils>>;
}
export {};