import { Context, Effect, Layer, RpcX, S } from "effect-app"; import { NotLoggedInError, UnauthorizedError } from "effect-app/client"; import { RpcContextMap } from "effect-app/rpc"; declare const UserProfile_base: S.EnhancedClass & { withDefault: S.withConstructorDefault>; withDecodingDefaultType: S.withDecodingDefaultType>; }; }>, {}> & Context.Opaque; export declare class UserProfile extends UserProfile_base { } declare const Some_base: Context.OpaqueClass & { readonly make: Effect.Effect<{ a: number; }, never, never>; }; export declare class Some extends Some_base { } declare const SomeElse_base: Context.OpaqueClass & { readonly make: Effect.Effect<{ b: number; }, never, never>; }; export declare class SomeElse extends SomeElse_base { } declare const SomeService_base: Context.OpaqueClass & { readonly make: Effect.Effect<{ a: number; }, never, never>; }; export declare class SomeService extends SomeService_base { static readonly Default: Layer.Layer; } declare const SomeMiddleware_base: RpcX.RpcMiddleware.TagClass; export declare class SomeMiddleware extends SomeMiddleware_base { } export declare const SomeMiddlewareLive: Layer.Layer; declare const SomeElseMiddleware_base: RpcX.RpcMiddleware.TagClass; export declare class SomeElseMiddleware extends SomeElseMiddleware_base { } export declare const SomeElseMiddlewareLive: Layer.Layer; declare const RequestContextMap_base: (new () => { readonly config: { readonly allowAnonymous: RpcContextMap.RpcContextMap.Inverted; readonly requireRoles: RpcContextMap.RpcContextMap.Custom; readonly test: RpcContextMap.RpcContextMap; }; }) & { config: { readonly allowAnonymous: RpcContextMap.RpcContextMap.Inverted; readonly requireRoles: RpcContextMap.RpcContextMap.Custom; readonly test: RpcContextMap.RpcContextMap; }; getConfig: (rpc: import("effect/unstable/rpc/Rpc").AnyWithProps) => RpcContextMap.GetContextConfig<{ readonly allowAnonymous: RpcContextMap.RpcContextMap.Inverted; readonly requireRoles: RpcContextMap.RpcContextMap.Custom; readonly test: RpcContextMap.RpcContextMap; }>; get: (key: Key) => RpcX.RpcMiddleware.RpcDynamic; readonly requireRoles: RpcContextMap.RpcContextMap.Custom; readonly test: RpcContextMap.RpcContextMap; }[Key]>; }; export declare class RequestContextMap extends RequestContextMap_base { } declare const AllowAnonymous_base: RpcX.RpcMiddleware.TagClass>; }, { requires: SomeElse; }>; export declare class AllowAnonymous extends AllowAnonymous_base { } export declare const AllowAnonymousLive: Layer.Layer; declare const RequireRoles_base: RpcX.RpcMiddleware.TagClass>; readonly dependsOn: readonly [typeof AllowAnonymous]; }, { requires: never; provides: never; }>; export declare class RequireRoles extends RequireRoles_base { } export declare const RequireRolesLive: Layer.Layer; declare const Test_base: RpcX.RpcMiddleware.TagClass>; }, { requires: never; provides: never; }>; export declare class Test extends Test_base { } export declare const TestLive: Layer.Layer; declare const Counter_base: Context.OpaqueClass & { readonly make: Effect.Effect<{ a: number; }, never, never>; }; export declare class Counter extends Counter_base { } declare const CustomError1_base: S.EnhancedClass; }>, import("effect/Cause").YieldableError>; export declare class CustomError1 extends CustomError1_base { } declare const CustomError2_base: S.EnhancedClass; }>, import("effect/Cause").YieldableError>; export declare class CustomError2 extends CustomError2_base { } export {}; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZml4dHVyZXMuZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL2ZpeHR1cmVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxPQUFPLEVBQUUsTUFBTSxFQUFFLEtBQUssRUFBRSxJQUFJLEVBQUUsQ0FBQyxFQUFTLE1BQU0sWUFBWSxDQUFBO0FBQ25FLE9BQU8sRUFBRSxnQkFBZ0IsRUFBRSxpQkFBaUIsRUFBRSxNQUFNLG1CQUFtQixDQUFBO0FBQ3ZFLE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQTs7Ozs7Ozs7QUFHOUMscUJBQWEsV0FBWSxTQUFRLGdCQUtoQztDQUNBOzs7Ozs7OztBQUVELHFCQUFhLElBQUssU0FBUSxTQUFrRTtDQUFHOzs7Ozs7OztBQUMvRixxQkFBYSxRQUFTLFNBQVEsY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