/** * @since 1.0.0 */ import type * as Chunk from "effect/Chunk" import * as Config from "effect/Config" import type * as Equal from "effect/Equal" import type * as Redacted from "effect/Redacted" import * as internal from "./internal/configSecretURL.js" // /** // * @since 1.0.0 // * @category symbols // */ // export const SecretURLTypeId: unique symbol = internal.SecretURLTypeId // /** // * @since 1.0.0 // * @category symbols // */ // export type SecretURLTypeId = typeof SecretURLTypeId /** * @since 1.0.0 * @category models */ // eslint-disable-next-line import/namespace export interface SecretURL extends Redacted.Redacted, Equal.Equal { /** @internal */ readonly raw: Array } export interface SecretURLOps {} export const SecretURL: SecretURLOps = {} /** * @since 1.0.0 */ export declare namespace SecretURL {} /** * @since 1.0.0 * @category refinements * @deprecated */ export const isSecretURL: (u: unknown) => u is SecretURL = internal.isSecretURL /** * @since 1.0.0 * @category constructors */ export const make: (bytes: Array) => SecretURL = internal.make /** * @since 1.0.0 * @category constructors */ export const fromChunk: (chunk: Chunk.Chunk) => SecretURL = internal.fromChunk /** * @since 1.0.0 * @category constructors */ export const fromString: (text: string) => SecretURL = internal.fromString /** * @since 1.0.0 * @category getters */ export const value: (self: SecretURL) => string = internal.value /** * @since 1.0.0 * @category unsafe */ export const unsafeWipe: (self: SecretURL) => void = internal.unsafeWipe export const secretURL = (name?: string): Config.Config => { return Config.map(Config.nonEmptyString(name), fromString) }