import { l } from "@atproto/lex-schema"; import * as LabelDefs from "../../com/atproto/label/defs.defs.js"; import * as ThemeBasic from "./theme/basic.defs.js"; declare const $nsid = "site.standard.publication"; type $nsid = typeof $nsid; export { $nsid }; /** A publication record representing a blog, website, or content platform. Publications serve as containers for documents and define the overall branding and settings. */ type Main = { $type: "site.standard.publication"; /** * Base publication url (ex: https://standard.site). The canonical document URL is formed by combining this value with the document path. */ "url": l.UriString; /** * Square image to identify the publication. Should be at least 256x256. */ "icon"?: l.BlobRef; /** * Name of the publication. */ "name": string; /** * Self-label values for this publication. Effectively content warnings. */ "labels"?: l.$Typed | l.Unknown$TypedObject; /** * Simplified publication theme for tools and apps to utilize when displaying content. */ "basicTheme"?: ThemeBasic.Main; /** * Brief description of the publication. */ "description"?: string; /** * Object containing platform specific preferences (with a few shared properties). */ "preferences"?: Preferences; }; export type { Main }; /** A publication record representing a blog, website, or content platform. Publications serve as containers for documents and define the overall branding and settings. */ declare const main: l.RecordSchema<"tid", "site.standard.publication", l.Validator, Omit>>; export { main }; declare const $type = "site.standard.publication"; type $type = typeof $type; export { $type }; export declare const $isTypeOf: (value: TValue) => value is l.TypedRecord<"site.standard.publication", TValue>; export declare const $build: { (input: Omit, "$type">): { $type: "site.standard.publication"; url: l.UriString; icon?: l.BlobRef; name: string; labels?: l.$Typed | l.Unknown$TypedObject; basicTheme?: ThemeBasic.Main; description?: string; preferences?: Preferences; }; (input: Omit, "$type">): { $type: "site.standard.publication"; url: l.UriString; icon?: l.BlobRef; name: string; labels?: l.$Typed | l.Unknown$TypedObject; basicTheme?: ThemeBasic.Main; description?: string; preferences?: Preferences; }; }; export declare const $assert: (input: unknown, options?: l.ValidateOptions) => asserts input is { $type: "site.standard.publication"; url: l.UriString; icon?: l.BlobRef; name: string; labels?: l.$Typed | l.Unknown$TypedObject; basicTheme?: ThemeBasic.Main; description?: string; preferences?: Preferences; }; export declare const $check: (input: unknown, options?: l.ValidateOptions) => void; export declare const $cast: (input: I, options?: l.ValidateOptions) => I & { $type: "site.standard.publication"; url: l.UriString; icon?: l.BlobRef; name: string; labels?: l.$Typed | l.Unknown$TypedObject; basicTheme?: ThemeBasic.Main; description?: string; preferences?: Preferences; }; export declare const $ifMatches: (input: I, options?: l.ValidateOptions) => (I & { $type: "site.standard.publication"; url: l.UriString; icon?: l.BlobRef; name: string; labels?: l.$Typed | l.Unknown$TypedObject; basicTheme?: ThemeBasic.Main; description?: string; preferences?: Preferences; }) | undefined; export declare const $matches: (input: I, options?: l.ValidateOptions) => input is I & { $type: "site.standard.publication"; url: l.UriString; icon?: l.BlobRef; name: string; labels?: l.$Typed | l.Unknown$TypedObject; basicTheme?: ThemeBasic.Main; description?: string; preferences?: Preferences; }; export declare const $parse: (input: unknown, options?: l.ParseOptions) => { $type: "site.standard.publication"; url: l.UriString; icon?: l.BlobRef; name: string; labels?: l.$Typed | l.Unknown$TypedObject; basicTheme?: ThemeBasic.Main; description?: string; preferences?: Preferences; }; export declare const $safeParse: (input: unknown, options?: l.ParseOptions) => l.ValidationResult<{ $type: "site.standard.publication"; url: l.UriString; icon?: l.BlobRef; name: string; labels?: l.$Typed | l.Unknown$TypedObject; basicTheme?: ThemeBasic.Main; description?: string; preferences?: Preferences; }>; export declare const $validate: (input: I, options?: l.ValidateOptions) => I & { $type: "site.standard.publication"; url: l.UriString; icon?: l.BlobRef; name: string; labels?: l.$Typed | l.Unknown$TypedObject; basicTheme?: ThemeBasic.Main; description?: string; preferences?: Preferences; }; export declare const $safeValidate: (input: I, options?: l.ValidateOptions) => l.ValidationResult | l.Unknown$TypedObject; basicTheme?: ThemeBasic.Main; description?: string; preferences?: Preferences; }>; type Preferences = { $type?: "site.standard.publication#preferences"; /** * Boolean which decides whether the publication should appear in discovery feeds. */ "showInDiscover"?: boolean; }; export type { Preferences }; declare const preferences: l.TypedObjectSchema<"site.standard.publication#preferences", l.Validator>; export { preferences }; //# sourceMappingURL=publication.defs.d.ts.map